in reply to Deleteing array elements
You probably haven't got the data structure you think you have. What I think you mean is:
my @a = ('a', 'b', 'c', 'd'); #or my @a = qw( a b c d );
To delete the array element containing 'c', see grep:
@a = grep { $_ ne 'c' } @a;
Update Further to Corion's (and others) advice
|
|---|