Tested, seems to work.foreach my $key (sort { substr($hash{$a}, -2) cmp substr($hash{$b}, -2 +) } keys %hash) { print $key . ' ' . $hash{$key} . "\n"; }
-- Kirby, WhitePages.com
In reply to Re: Crazy hash sorting issue.
by kirbyk
in thread Crazy hash sorting issue.
by rementis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |