Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-12-27 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls