Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: When should you not use strict and warnings?

by Tommy (Chaplain)
on Dec 27, 2012 at 14:20 UTC ( #1010535=note: print w/ replies, xml ) Need Help??

in reply to When should you not use strict and warnings?

Far be it from me to discourage the use of warnings and strict. It's extremely disheartening to read in one of the responses from LanX that someone was ever fired for using them.

As you've pointed out, one aspect of this that I've found useful resorted to in very rare cases was to switch off warnings in only a certain part of a program in an enclosing block. This was almost always because of the "uninitialized" warning sounding off when it was irrelevant. I recall reading some CPAN code recently where the "once" warning was bothering a certain Matt Trout. (See the colorful language on line 95 of v 1.000007)

As for me, I can't think of a time when it would ever be apropos to disable strict or warnings completely.

$ perl -MMIME::Base64 -e 'print decode_base64 "YWNlQHRvbW15YnV0bGVyLm1lCg=="'
Comment on Re: When should you not use strict and warnings?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2016-05-04 20:13 GMT
Find Nodes?
    Voting Booth?