why? what database(s)? no, you can't do that (how would it work??).. but you can just open two connections and work with each of them:
my $dbhA = DBI->connect($data_sourceA, $usernameA, $authA, \%attrA) +or die ...; my $dbhB = DBI->connect($data_sourceB, $usernameB, $authB, \%attrB) +or die ...;
If you're trying to do cross-db joins or something, you'll have to do it in perl (or move all the data into one or the other, or a 3rd temp database).
If you're just copying code from one to the other, try DBIx::Copy as well as Super Search for lots of related threads.

In reply to Re: Is it possible to connect to multiple DBI servers in a single connection string? by davidrw
in thread Is it possible to connect to multiple DBI servers in a single connection string? by valavanp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.