Here's one way:
$ perl -E 'my @x = qw{A B C D}; @x = grep $_ ne "B", @x; say "@x"' A C D
— Ken
In reply to Re: Removing a string-element from an array of strings
by kcott
in thread Removing a string-element from an array of strings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |