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

Re^2: the if statement

by FunkyMonk (Canon)
on Sep 27, 2008 at 22:50 UTC ( #714075=note: print w/ replies, xml ) Need Help??


in reply to Re: the if statement
in thread the if statement

you need to loop through the keys, comparing $input to each key
That's what exists is for. In this case if ($hash{$input}) { ... } is probably good enough.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2016-06-26 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (328 votes). Check out past polls.