|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: For Loops and Reversing outputby jonadab (Parson) |
| on Dec 12, 2006 at 14:34 UTC ( #589285=note: print w/ replies, xml ) | Need Help?? |
|
Another way to do it, without icky C-style for loops:
Or another way, that doesn't destroy @sorted in the process: my @rocks = sort { $b cmp $a } @sorted;Sanity? Oh, yeah, I've got all kinds of sanity. In fact, I've developed whole new kinds of sanity. You can just call me "Mister Sanity". Why, I've got so much sanity it's driving me crazy.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||