Created
October 26, 2020 11:05
-
-
Save ExpandingShapes/b0984f24f5850a7ab4d82e7a6f70e950 to your computer and use it in GitHub Desktop.
This file contains 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 characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
$, = " "; | |
sub GetUniqueSorted { | |
my (@arr) = @_; | |
my %uniqueHash = (); | |
@uniqueHash{@arr} = (); | |
return sort keys % uniqueHash; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment