in reply to Re: DBI & DBD-Sybase packages
in thread DBI & DBD-Sybase packages

$DB1 = "dbi:Sybase:server=server_name;database=db"; use DBI; # # Open the connection to the database # if ( ! defined( $dbh ) ) { $dbh = DBI->connect( $DB1, 'uid', 'passw', 'Sybase' );

Replies are listed 'Best First'.
Re^3: DBI & DBD-Sybase packages
by apl (Monsignor) on May 02, 2008 at 14:42 UTC
    Well, the definition of DBI::connect indicates that the (optional) fourth parameter is a reference to an attributes hash, not a string constant.

    If I had to hazard a guess, I'd change your connect to $dbh = DBI->connect( $DB1, 'uid', 'passw' );