On Thu, 13 Jan 2005, Dave Kettmann wrote:

> [...] Some of the time I see them say that the [strict / warnings] 
> pragmas are good for developing programs/scripts. The way it is worded 
> some times it seems as if after the program is written and in 
> 'production' to take these lines out of the code. Do they slow down 
> how perl processes the programs? Does it hurt to leave them in?

No, leave them in, always. 

There should be little if any noticable speed difference.

They're a safety net for developing new code, and they're a safety net 
for protecting against future breakage. The latter becomes especially 
important as time goes on, where if you're the one mainting the program 
you no longer remember how it works, or (more typically) someone else is 
maintaining it and they have to figure out what your intentions were. 

Having the discipline that strict & warnings enforces ensures that the 
code should be that much more maintainable in the long term.

So, leave them in. Always.
 

-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to