On Aug 11, Christopher J. Bottaro said:

>is it possible to do set opperations on arrays?  any cpan module or
>anything?  i want to do something like the following:
>
>@intersection = set_intersection(@ar1, @ar2, @ar3);
>@ar1 = set_difference(@ar1, @intersection);
>@ar2 = set_difference(@ar2, @intersection);
>@ar3 = set_difference(@ar3, @intersection);

This in the Perl FAQ.

  perldoc -q intersection

Or you can use a module from CPAN such as Set::Array.

-- 
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to