[ABE.pm] Coding for peace of mind
Ted Fiedler
fiedlert at gmail.com
Fri Aug 17 05:06:33 PDT 2007
So In using Config::INI::Reader i define which DB id like to use
[servers]
target = serverx
source = serverzz
and in my code do
# servers to use
my $source = $configuration->{'servers'}->{'source'};
my $target = $configuration->{'servers'}->{'target'};
then
my $ldbh = caiDB->$source();
my $rdbh = caiDB->$target();
the obvious havoc ensues.
my DB connections are pulled into being through the caiDB.pm Id just like to
be able to name them
in the ini file.
As a friend of mine would say:
How to do this with maximal peace and serenity?
Or I could take a lesson from Schmidt and leave well enough alone.
Ted
--
If you mess with a thing long enough, it'll break.
-- Schmidt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070817/73d8c6f1/attachment.html
More information about the ABE-pm
mailing list