Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How to check if a variable's value is equal to a member of a list of values

by LanX (Canon)
on Mar 25, 2013 at 14:09 UTC ( #1025310=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %look;
    @look{@set_of_values}=();
    ...
    ...
    
    print "gotcha" if exists $look{$to_check};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-07-30 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls