Robert wrote:
I simply use:
my $dbh = DBConn::db1();
It does the right connection (i.e. subroutine) from the DBConn package and I
didn't use Exporter. I should also mention that DBConn is in the same folder
and the calling script so maybe that makes a difference.
No, it doesn't. You can mix packages in any manner you like throughout
your modules. Whether you should ...
I am probably going to go back and do a proper module of it so I can get in
the "habit" of doing so.
If you want to make a proper module out of it, separate it into three,
one for each connection. Then add (to each) a close connection
subroutine, a commit, and a rollback. Change the names so that they are
more descriptive of the data.
Always write your code as though you won't see it for 25 years and then
have to change it yesterday.
--
Just my 0.00000002 million dollars worth,
--- Shawn
"Probability is now one. Any problems that are left are your own."
SS Heart of Gold, _The Hitchhiker's Guide to the Galaxy_
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>