Created
October 26, 2020 11:05
-
-
Save ExpandingShapes/b0984f24f5850a7ab4d82e7a6f70e950 to your computer and use it in GitHub Desktop.
Revisions
-
ExpandingShapes created this gist
Oct 26, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #!/usr/bin/env perl use strict; use warnings; use Data::Dumper; $, = " "; sub GetUniqueSorted { my (@arr) = @_; my %uniqueHash = (); @uniqueHash{@arr} = (); return sort keys % uniqueHash; }