nmerriweather has asked for the wisdom of the Perl Monks concerning the following question:
i can't figure out how its done
i'm migrating a bunch of old procedural code into a new object oriented framework
i'm kind of liking it too.
except i can't figure out, for the life of my, how to have the new packages/objects/classes/whatever i create use a unified database connection.
i'd rather not have a connection in each instance. i'd like to *somehow* address a global connection
is that at all possible? or am i going to have to make a new package and do all my database stuff in there?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: using multiple packages w/1 database connection
by BUU (Prior) on Sep 22, 2003 at 05:34 UTC | |
by tachyon (Chancellor) on Sep 22, 2003 at 07:41 UTC | |
by iburrell (Chaplain) on Sep 22, 2003 at 21:30 UTC | |
by tachyon (Chancellor) on Sep 23, 2003 at 02:20 UTC | |
Re: using multiple packages w/1 database connection
by rnahi (Curate) on Sep 22, 2003 at 07:34 UTC |
Back to
Seekers of Perl Wisdom