my @scratch= grep {$_ != $deleter } @{$self->{_fields}}; my $retval= @{$self->{_fields}} - @scratch; @{$self->{_fields}} = @scratch;
In reply to Re: What's the best metaphor for deleting something from a list?
by John M. Dlugosz
in thread What's the best metaphor for deleting something from a list?
by petdance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |