Re: fun with hashes!

Keith Ivey <[email protected]> Sat, 24 Nov 2007 23:48:45 -0500
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
How about using a hash to keep track of which things you've already handled?

    my %seen;
    for my $value (@values) {
       next if $seen{$value}++;
       # Do processing with $value here.
    }

-- 
Keith C. Ivey <[email protected]>
Washington, DC