![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: While on hashes doesn't work?by mkmcconn (Chaplain) |
on Feb 04, 2002 at 23:26 UTC ( #143316=note: print w/replies, xml ) | Need Help?? |
Not recommending it, but perhaps it gives insight into how while works (in addition to what gellyfish said above)
Without those parens around $_, I would expect it to try to pass '5' into the block (which it would do if you took away the sort function), but it doesn't do that. I suppose that might qualify as an insignificant bug. update: thanks to merlyn for fixing the bug in my understanding of how sort behaves. mkmcconn </code>
In Section
Seekers of Perl Wisdom
|
|