On May 18, James Edward Gray II said: >On May 18, 2004, at 10:12 PM, Jason Dusek wrote: > >> What modules handle this? I have been digging around in CPAN all day... > >Searching the CPAN for "array unique", the first match is the super >cool Tie::Array::Unique. > >http://search.cpan.org/~pinyan/Tie-Array-Unique-0.01/Unique.pm
Yes, I agree, it's super cool. (I'm the author.) All you need to do is drop in: use Tie::Array::Unique; tie my(@array), 'Tie::Array::Unique'; into your code, and @array will automatically be guaranteed to hold only unique elements. You have to download and install the module, of course, but that's a simple process. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ CPAN ID: PINYAN [Need a programmer? If you like my work, let me know.] <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>