On Tue, Jun 26, 2001 at 05:17:00PM -0400, [EMAIL PROTECTED] wrote:
> Does anyone familiar with 'use strict' know what may be going on? (Please
> don't make fun of the way I'm accessing the database.  It works, and
> besides, I've been too lazy to learn about the DBI package/module thing.)

I can find nothing in your code that would tell me why it's not working. 
You do need to know, however, that use strict would not cause variables to
disappear.  Any problems caught by use strict become fatal.  Your problem
lies in declaring your variables lexical (with my); you can't just declare
everything lexical without understanding the mechanics of lexical variables,
or what the scope is on your current variables.

Retrofitting strictness onto an existing script is difficult.  Unless you
have good reasons, such as a major rewrite, if the script is working I would
suggest you not try to add strict, just make sure to add it early in the
life of any new scripts you write.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

Reply via email to