http://qs1969.pair.com?node_id=782586


in reply to Deleteing array elements

If you know the index of the element you want to delete you can use a slice
@arr = @arr[0,1,3];
otherwise I'm not sure if you can avoid an (implicit) loop.
One possibility would be a grep
@arr = grep { $_ !~ /c/ } @arr;
Why do you want to avoid a loop? Are there so many elements in the array? Maybe you could avoid putting the unwanted elements in the array in the first place.

cheers, si_lence