http://qs321.pair.com?node_id=11119810


in reply to Removing a string-element from an array of strings

Here's one way:

$ perl -E 'my @x = qw{A B C D}; @x = grep $_ ne "B", @x; say "@x"' A C D

— Ken