Re: fun with hashes!
[email protected] (Keith Ivey) Sat, 24 Nov 2007 23:48:45 -0500
| Newsgroups | perl.fwp |
|---|---|
| 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