<tt class='inlinecode'>shift</tt> requires an array for argument, not a list. Perhaps you want (sort @array)[0]?
Update: s/sort requires/shift requires/
In reply to Re: Type of arg 1 to shift must be array (not sort)
by ikegami
in thread Type of arg 1 to shift must be array (not sort)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |