Of course it's probably going to be more efficient to get the sorting order to reverse than to physically reverse the sorted list after the sort.
for ( sort { $b cmp $a } @keys ) { print "$_\n"; }
Update: Oooh, that's good to know. Never mind me then.
We're looking for a Perl and Database Developer for Corporate Investments Group.
In reply to Re^2: sort/reverse strangeness
by Fletch
in thread sort/reverse strangeness
by ruzam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |