Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2016-10-21 10:09 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (288 votes). Check out past polls.