Dave Kettmann wrote:
Hello all,

hello,

I have seen in quite a few posts to the list from the non-beginners, who I think all of us beginners appreciate them taking their time to help us true beginners, make some references to the strict and warnings pragmas. So I have a question about them. Some of the time I see them say that the 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?

During development 100% for sure, after it's done 99% (because when is soemthing ever really done ?)


I'd say, leave them in, because what if you want to modify it in a year and do something wrong. Then you (or your successor) might forget strict and warnings and beat the brains out trying to find the problem when strict/warnings woudl've prevented that. Or what if they add a variabel that's wacky out of scope? It could kill your entire script, delete your databse etc. unless perl tels you about it first :)

As for speed/over head, thats a good question, maybe I'll benchmark it if I get time :)

--
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