in reply to Exporting sofcoded DBH

If you want to use variable variable names, use a hash instead.

Replies are listed 'Best First'.
Re^2: Exporting sofcoded DBH
by dean_e_boy (Initiate) on Feb 22, 2008 at 11:07 UTC
    Apologies, but how would I do this?

    Many Thanks

      my %db_handle = ( oracle => DBI->connect("DBI:Oracle:$db", $i_userid, $i_passwd); ); ... my $sth = $db_handle{oracle}->prepare(...);