Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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) { }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://608334]
help
Chatterbox?
[Lady_Aleena]: LanX, I just never thought I would be explaining perl regex to others. It is usually others explaining why a regex isn't working to me.
[Discipulus]: congratulations shmem! (was my last upvote? ;=)
[choroba]: The site could send a message similar to the one when reaping. "You promoted shmem by upvoting their node... :-)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2017-04-28 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (520 votes). Check out past polls.