in reply to
pop sort strangeness
Others have explained why that doesn't work, but I'll add that if all you want is the the maximum element, you're wasting a lot of time sorting the list to get it. I would suggest max or maxstr from
List::Util
for that.
Comment on
Re: pop sort strangeness
In Section
Seekers of Perl Wisdom