perlquestion
waxmop
<p>Here's what I want to accomplish:
<code>
my @arr = qw(aa bb cc);
my $var = "aa";
yoink(@arr, $var);
print "@arr\n"; # now, @arr is qw(bb cc);
</code>
<p>The yoink() function would remove from the array any
elements that match the $var variable.
<p>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.
<p>Thanks as always.