Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Arrays and Hashes Mapping

by kappa (Chaplain)
on Dec 08, 2004 at 12:17 UTC ( [id://413176]=note: print w/replies, xml ) Need Help??


in reply to Re: Arrays and Hashes Mapping
in thread Arrays and Hashes Mapping

Better use exists here, so that ( zero => 0, empty => '' ) won't give you false positives:
@list = grep { !exists $hash{$_} } @list;
--kap

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found