$DBI::errstr never holds any value

"Wechsler, Steven" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <E67053DABCCDF4428BB7974550E1108F01089180@DIRECTEFFECT.mtvn.ad.viacom.com>
Behold the following code snippet:

        $dbh = DBI->connect("dbi:Sybase:server=$server", $login,
$srvpassword,
                            {PrintError => 0});
        if (! $dbh) {
            print "Can't connect to $server: $DBI::errstr\n";
            $error = 1;
            next server;
        }

I never get a value from $DBI::errstr (in the case that I'm trying, the
reason is a wrong password). What am I doing wrong?

Thanks,

Steve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.