Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Arrays and Hashes Mapping

by kappa (Chaplain)
on Dec 08, 2004 at 12:17 UTC ( #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
Node Status?
node history
Node Type: note [id://413176]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2020-05-24 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (142 votes). Check out past polls.

    Notices?