Aren't the following functionally equivalent, i.e. Sort, make an array and a reference to it, dereference it, get the [first] item?
print [sort @array]->[0]; print @{[sort @array]}[0];
In reply to Re^5: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |