|more useful options|
Passing a database connectionby Spidy (Chaplain)
|on Nov 22, 2005 at 21:26 UTC||Need Help??|
Spidy has asked for the
wisdom of the Perl Monks concerning the following question:
I'm writing some database code that involves modules, but I'm having a strange issue.
Inside my module(Main.pm), I have this piece of code:
Which is ideally supposed to take the database connection passed to it, so that the module can use it. However, I'm having some issues. Inside my main script, I do this:
and then later on,
However, I'm getting an error for Main.pm, which is
Anyone have any ideas?