Last active
August 29, 2015 14:06
-
-
Save AndrewRussellHayes/5d15966a4cbe31fc0914 to your computer and use it in GitHub Desktop.
for each keys in sort hash alphabetic sort
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
foreach my $name (sort keys %planets) { | |
printf "%-8s %s\n", $name, $planets{$name}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment