Might your strings be numeric, or can you simply grep out non-digits?
@array = grep !/\D/, @array;
Otherwise, I'd grab every other like:
my $i; @array = grep ++$i%2, @array;
In reply to Re: removing elements from an array
by hbm
in thread removing elements from an array
by prbndr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |