Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

(jeffa) Re: Why use strict/warnings?

by jeffa (Bishop)
on Aug 09, 2001 at 23:08 UTC ( [id://103570]=note: print w/replies, xml ) Need Help??


in reply to Why use strict/warnings?

Take a look at this. See those guys? If you don't use strict (they are lax on warnings), they will hunt you down and say mean things to you.

Seriously, the _best_ reason i can think of is 'it will save you time and keep you from stressing out'.

I had recently found myself getting very lax at using strict and warnings, and it was showing! The average programmer makes typos, lots of them. Strict and warnings will help you catch those typos, don't use them and you will waste your time trying to understand why your program is not working correctly, even though it compiles.

So, if you are really good at 'guessing' why your program is broken, then don't bother with strict and warnings, but if you cherish the hairs on your head and a calm stomach, please use them. :)

perl -le '$x="jeff";$x++ for(0..4482550);print $x'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found