Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect( $DSN, $username, $mysqlpassword );
    if ($dbh) {
    ...
    } else {
        say "Catastrophe! Connection failure with DSN '$DSN': $DBI::errstr
    +";
    }