Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: the if statement

by eyepopslikeamosquito (Chancellor)
on Sep 28, 2008 at 02:27 UTC ( #714106=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

Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi. :-)

-- Larry Wall in Authoritative list of Larry Wall quotes

See also Clubbing someone to death with a loaded Uzi blog by Dominus.


Comment on Re^2: the if statement

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2015-07-30 16:11 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 (273 votes), past polls