in reply to Errors from a simple Package
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.
|
|---|