in reply to Re^2: Why does 'print shift sort @array' not work?
in thread Why does 'print shift sort @array' not work?
I said "another", not "a more valuable." As for preferable, I think it depends. Consider:
print pop @{[sort qw(a f e b)]}; print (reverse sort qw(a f e b))[0]; use List::Util qw(maxstr); print maxstr qw(a f e b);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Why does 'print shift sort @array' not work?
by ikegami (Patriarch) on Feb 26, 2009 at 20:28 UTC |