Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Hoss'ss Last Words

by AnomalousMonk (Archbishop)
on Jul 18, 2011 at 00:19 UTC ( [id://915035]=note: print w/replies, xml ) Need Help??


in reply to Hoss'ss Last Words

When you write equality comparisons, get in the habit of putting the constant on the left side.

You may have intended that the word 'equality' include them, but this advice applies also to 'not equal' comparisons:  someVariable =! true is usually a valid expression, so
    if (someVariable =! true) { /* BUG!! */ }
is a valid statement.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found