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

Re: Need help testing to see if a variable is one value or the other

by ikegami (Patriarch)
on Jan 30, 2008 at 21:27 UTC ( [id://665222]=note: print w/replies, xml ) Need Help??


in reply to Need help testing to see if a variable is one value or the other

Here's the reason why:
"yes" or "no"
evaluates to "yes", so
$var eq ("yes" or "no")
is the same as
$var eq "yes"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-26 01:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found