Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Errors from a simple Package

by wfsp (Abbot)
on Mar 16, 2011 at 09:50 UTC ( [id://893522]=note: print w/replies, xml ) Need Help??


in reply to Errors from a simple Package

I think you need
use crsTools4 qq{$sth}; # import an EXPORT_OK var
in the script. The package should probably be
our @EXPORT_OK = qw($dbh $sth); our ($dbh, $sth); # declare vars to be EXPORT_OKed
and remove the our in the connect2db sub.

I don't know where $sth2 would come from.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://893522]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found