in reply to Re: Removing an element from an array
in thread Removing an element from an array

Is there a good reason not to simplify it like this ? As you already mentioned, the first splice modifies @a ...

sub rm($@) { my ($e,@a) = @_; splice(@a,$e,1); return (@a); }

Torsten