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 ( #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? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2022-01-21 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (57 votes). Check out past polls.

    Notices?