in the script. The package should probably beuse crsTools4 qq{$sth}; # import an EXPORT_OK var
and remove the our in the connect2db sub.our @EXPORT_OK = qw($dbh $sth); our ($dbh, $sth); # declare vars to be EXPORT_OKed
I don't know where $sth2 would come from.
In reply to Re: Errors from a simple Package
by wfsp
in thread Errors from a simple Package
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |