Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Using a HASH to store a DBI connection

by runrig (Abbot)
on Dec 16, 2015 at 23:14 UTC ( [id://1150557]=note: print w/replies, xml ) Need Help??


in reply to Using a HASH to store a DBI connection

Store the connection info as array refs, and then dereference it when connecting:
my %db_conn = ( a_manager => [ 'DBI:Oracle:host=hostname1;sid=ABCDB01;port=1300','a +_manager','a_manager' ], ... ); ... my $dbh = DBI->connect(@$data_source) or die ...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2024-04-19 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found