in reply to Re: Type of arg 1 to shift must be array (not sort)
in thread Type of arg 1 to shift must be array (not sort)

(undef, @a) = sort @a;