Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: My habitual errors

by imp (Priest)
on Apr 04, 2007 at 17:29 UTC ( #608334=note: print w/ replies, xml ) Need Help??

in reply to Re: My habitual errors
in thread My habitual errors

For comparisons that have a constant I keep that value on the left hand side to avoid accidental assignment. Doesn't work for expressions that use two variables of course.

if (0 == $n) { } elsif (1 == $n) { }

Comment on Re^2: My habitual errors
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (14)
As of 2015-11-25 13:01 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (675 votes), past polls