Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: OR operator

by DrManhattan (Chaplain)
on Apr 10, 2003 at 00:54 UTC ( #249490=note: print w/ replies, xml ) Need Help??


in reply to OR operator

Here's a correct syntax:

if ($color eq "red" || $color eq "blue" || $color eq "green") { # something }

-Matt


Comment on Re: OR operator
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-12-27 18:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (177 votes), past polls