in reply to Re: using function delete with arrays
in thread using function delete with arrays

Use splice:

$ perl -wle 'my @a=(2,3,4); splice @a, 1, 1, (); print scalar @a' 2