As shift removes an element from its argument (an array), there must be an actual array data structure to remove from. In your case it's just a list of values on the Perl internal stack.
In reply to Re: Why does 'print shift sort @array' not work?
by almut
in thread Why does 'print shift sort @array' not work?
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |