Another option is to put the results of sort into an anonymous array and then dereference:
print shift @{[sort @array]}
In reply to Re: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |