On Wed, 2004-08-11 at 18:13, Christopher J. Bottaro wrote: > is it possible to do set opperations on arrays? any cpan module or > anything? i want to do something like the following:
Yes, it is possible. http://search.cpan.org/~muenalan/Class-Maker-0.05.18/Maker/Examples/Array.pm or, if you're into OOP, http://search.cpan.org/~muenalan/Class-Maker-Examples-0.01_02/Examples/Array.pm > @intersection = set_intersection(@ar1, @ar2, @ar3); > @ar1 = set_difference(@ar1, @intersection); > @ar2 = set_difference(@ar2, @intersection); > @ar3 = set_difference(@ar3, @intersection); > > thanks for the help. HTH jac -- José Alves de Castro <[EMAIL PROTECTED]> http://natura.di.uminho.pt/~jac
signature.asc
Description: This is a digitally signed message part