in reply to Re: small steps toward Perl literacy, temp vars and parentheses
in thread small steps toward Perl literacy, temp vars and parentheses
(that, by the way, is completely untested. Hmm, testing says it doesn't work, type of arg 1 of shift must be array, not sort. i wasn't aware that sort was a type. I wonder how to do what I want...)%h = map { $_, $h{ $_ } } shift sort { $a <==> $b } keys %h;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: small steps toward Perl literacy, temp vars and parentheses
by BrowserUk (Patriarch) on Jun 17, 2004 at 00:40 UTC |