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);
In reply to Re^3: Why does 'print shift sort @array' not work?
by hbm
in thread Why does 'print shift sort @array' not work?
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |