Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: When should you not use strict and warnings?

by Tommy (Chaplain)
on Dec 27, 2012 at 14:20 UTC ( [id://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 Moo.pm 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.

--
Tommy
$ perl -MMIME::Base64 -e 'print decode_base64 "YWNlQHRvbW15YnV0bGVyLm1lCg=="'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-18 15:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found