Christian Stalp [mailto:[EMAIL PROTECTED] wrote:
 
> I tried this:
> 
> my $dbh = DBI->connect("dbi:Pg:database=test2;host=127.0.01;port=5432",
> "postgres") or die $DBI:errstr;
                     ^^^^^^^^^^^

$DBI::errstr, not $DBI:errstr.  Note how the error messages call your
attention to this error:

> and got this:
> Global symbol "$DBI" requires explicit package name at ./postgre_test_1.pl
> line12.
> syntax error at ./postgre_test_1.pl line 12, near "$DBI:"

Ronald



Reply via email to