Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

RE: Answer: How do I check to see if a value in a hash is equal to something?

by merlyn (Sage)
on May 23, 2000 at 19:47 UTC ( #14391=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $is_in_hash=grep /^Superman$/,values(%hash); 
    
  2. or download this
    $is_in_hash = 0 < grep $_ eq "Superman", values %hash;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2015-07-29 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls