Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Avoiding silly programming mistakes

by kyle (Abbot)
on Aug 29, 2008 at 17:56 UTC ( #707803=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Avoiding silly programming mistakes
in thread Avoiding silly programming mistakes

I like the if ( 0 == $foo ) construct over if ( $foo == 0 ) because the s/==/=/ typo is an error in the first but not the second.

Can't modify constant item in scalar assignment

I'd rather have that than some mere warning.


Comment on Re^3: Avoiding silly programming mistakes
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2015-07-03 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls