in reply to Re: remove element from array
in thread remove element from array

George,
You cant use sort in void context. It doesn't mean anything. Ithink what you stated would have to be written like this:
$mit[$inde]=-1; @mit=sort @mit; shift @mit;
But as other posters have said its much more efficient to use splice().

Yves
--
You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)