in reply to RE: I have contributed a module to CPAN
in thread I have contributed a module to CPAN

In the works unless I know of something better: a module to return the subtraction of the contents of arrays.

You mean something like:

# "Subtract" (remove) elements of @minus from @list: my %dup; @dup{@minus}= (); @list= grep { exists $dup{$_} } @list;

Update: Thanks to PrincePawn for noting that I left out "not" above.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
RE: Subtract arrays (RE: I have contributed a module to CPAN)
by Fastolfe (Vicar) on Sep 21, 2000 at 20:07 UTC
    Set::Scalar has functionality like this.. Set intersections, unions, subsets, etc.
RE: Subtract arrays (RE: I have contributed a module to CPAN)
by princepawn (Parson) on Sep 21, 2000 at 20:18 UTC
    This looks like the intersection
    grep { not exists $dup{$_} } @list
    should be the difference.