On Jul 2, perl.org said: >>From http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch04_07.htm, is >this really the best way to ensure an *ordered* list contains only unique >values? It seems like it could/should be easier. I wonder why the >examples don't use my.
If you want a more transparent approach, use my Tie::Array::Unique module. use Tie::Array::Unique; tie my(@array), 'Tie::Array::Unique'; Now use @array normally. It will never contain duplicate elements. Get it from CPAN. -- 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>