Welcome to the Monastery | |
PerlMonks |
Re: pop sort strangenessby Zaxo (Archbishop) |
on Nov 15, 2004 at 16:10 UTC ( [id://407855]=note: print w/replies, xml ) | Need Help?? |
You could pop from an anonymous array like this, my $max = pop @{[sort @vals]}; where the cast turns sort's list into a nameless array. It's much better to say, There is a lot of lost motion in that unnecessary sort. After Compline,
In Section
Seekers of Perl Wisdom
|
|