in reply to (jeffa) Re: Simple array sorting
in thread Simple array sorting

delete is for hashes, not arrays

Picking nits ... from perldoc -f delete:

delete EXPR Given an expression that specifies a hash element, array element, hash slice, or array slice, deletes the specified element(s) from the hash or array. In the case of an array, if the array elements happen to be at the end, the size of the array will shrink to the highest element that tests true for exists() (or 0 if no such element exists).

-- Hofmator