Satya's blog - Perl: use strict;

Apr 09 2004 14:34 Perl: use strict;
It has always been said that one must use strict and use warnings in one's perl programs. This has just been made painfully clear to me while writing the new sitemaker[0].

I keep getting SQL errors. I trace the problem back, and one of my arrays is blank. Trace some more, and I find that it's coming blank out of the Configuration module.

Notice that the Configuration module has no 'use strict'. Tack on 'use strict' and 'use warnings'. Get bunches of errors about "Global symbol requires explicit package name". Go "Aha!"

[0] http://mysitemaker.sf.net/

Tag: tech perl