However, when you "use strict", you need to write code that behaves. Variables used in your script have to either be declared with "my" or explicitly qualified. Put
above line 8 in your code, and see what that gives you.my($dbh, $sth);
For more information, do
perldoc strict
In reply to Re: Database Blues
by btrott
in thread Database Blues
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |