Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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.


Comment on Re^2: the if statement
Download Code

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 lurking in the Monastery: (7)
As of 2014-10-22 23:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (122 votes), past polls