Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Class::DBI connect info from file?

by edoc (Chaplain)
on Jan 21, 2004 at 22:45 UTC ( #323050=note: print w/replies, xml ) Need Help??


in reply to Class::DBI connect info from file?

hmm.. there seem to be a lot of complicated answers here.. it's really quite simple.. just move the set_db call, it doesn't have to be in your CDBI modules at all..

eg in your main script or handler, before you make any calls to CDBI modules..

my @db_info = get_dbinfo(); My::DBI->set_db('Main', @db_info);

cheers,

J

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2022-01-17 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (51 votes). Check out past polls.

    Notices?