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

Re^2: When should you not use strict and warnings?

by Anonymous Monk
on Dec 27, 2012 at 17:24 UTC ( #1010552=note: print w/replies, xml ) Need Help??

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

I think Exporter::Lite complained about how use strict slowed down the compile. Of course, it's a tiny module -- for pretty much anything non-tiny, the overhead added by strict is negligible.

package Exporter::Lite; require 5.004; # Using strict or vars almost doubles our load time. Turn them back # on when debugging. #use strict 'vars'; # we're going to be doing a lot of sym refs #use vars qw($VERSION @EXPORT);

(My) Bottom line, I always turn them on when I start a script, and for the last 8 years or more never even think about turning them off, except for very small scopes.

I often forget to turn them on for a brand-new script and then wonder why my script is not working =(

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010552]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2018-04-24 05:22 GMT
Find Nodes?
    Voting Booth?