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

waxmop has asked for the wisdom of the Perl Monks concerning the following question:

Here's what I want to accomplish:

my @arr = qw(aa bb cc); my $var = "aa"; yoink(@arr, $var); print "@arr\n"; # now, @arr is qw(bb cc);

The yoink() function would remove from the array any elements that match the $var variable.

Is there a function to accomplish this already? I'm about to write "yoink()", but before I do, I thought I'd check with the resident geniuses around here.

Thanks as always.