in reply to Re: How to find out if X is an element in an array?
in thread How to find out if X is an element in an array?
Here's a similar approach:
ie: "make list of new addresses, but cross off those already used".# snip my %hash; $hash{$_}=1 for (@updatelist); $hash{$_}=0 for (@storelist); for (keys %hash) { push @finallist, $_ if ($hash{$_}); }
..02
cLive ;-)
|
---|
In Section
Seekers of Perl Wisdom