Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Help with this statement

by talexb (Chancellor)
on Jan 11, 2002 at 20:29 UTC ( [id://138044]=note: print w/replies, xml ) Need Help??


in reply to Help with this statement

The statement
if ($value == 456 || 453 )
works out as follows: "If variable value equals 456 OR if 453 is non-zero ...". Of course, 453 will always be non-zero. :)

What you probably want to say is

if ($value == 456 || $value == 453)

--t. alex

"Excellent. Release the hounds." -- Monty Burns.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found