I'd use grep, otherwise (IO has provided an example of how to use grep).for (0..$#arr) {delete($arr[$_]) if $arr[$_] eq $var;};
In reply to Re: how to rm an element from an array?
by Revelation
in thread how to rm an element from an array?
by waxmop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |