in reply to
Type of arg 1 to shift must be array (not sort)
Sort returns a list. Lists are immutable. Shift modifies its array argument. These can't mix. You must store the result in an array or shift can't work on it.
Phil
Comment on
Re: Type of arg 1 to shift must be array (not sort)
In Section
Seekers of Perl Wisdom