Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: How to connect multiple databases with single sub routine connection using perl?

by finddata (Sexton)
on Mar 28, 2017 at 04:30 UTC ( #1186188=note: print w/replies, xml ) Need Help??


in reply to Re: How to connect multiple databases with single sub routine connection using perl?
in thread How to connect multiple databases with single sub routine connection using perl?

Will it work.Becaue it will consider only one database and it will have the same database contents to other database also.
  • Comment on Re^2: How to connect multiple databases with single sub routine connection using perl?

Replies are listed 'Best First'.
Re^3: How to connect multiple databases with single sub routine connection using perl?
by AnomalousMonk (Bishop) on Mar 28, 2017 at 06:59 UTC
    Will it work.

    It will not.

    my $dbh = DBI->connect($dsn, $user, $pw) || die "ERROR: can't connect to database server\n"; return $dbh; $host = "dev.sp1.wilinlog.com";

    Regardless of the name of the function, it still has the problem: nothing after the first
        return $dbh;
    statement will ever be executed. The
            $host     = "dev.sp1.wilinlog.com";
    statement will never be executed. Please see return. There are some other problems, but those will only result in warnings and so are of relatively minor importance.

    My head hurts.


    Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2019-12-06 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (157 votes). Check out past polls.

    Notices?