Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Answer: How to find out if X is an element in an array?

by cLive ;-) (Prior)
on Dec 08, 2001 at 05:57 UTC ( #130372=note: print w/replies, xml ) Need Help??


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:
# snip my %hash; $hash{$_}=1 for (@updatelist); $hash{$_}=0 for (@storelist); for (keys %hash) { push @finallist, $_ if ($hash{$_}); }
ie: "make list of new addresses, but cross off those already used".

..02

cLive ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://130372]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2023-03-27 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?