I'm not being wise here, but did you do

    use DBI;

at the top of your script?

Hardy Merrill

>>> "Christian Stalp" <[EMAIL PROTECTED]> 1/23/2006 11:57 AM >>>
I tried this:

my $dbh = DBI->connect("dbi:Pg:database=test2;host=127.0.01;port=5432",
"postgres") or die $DBI:errstr;
test2 is the name of the database.

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:"
Execution of ./postgre_test_1.pl aborted due to compilation errors.

Gruss Christian

-- 
DSL-Aktion wegen gro*er Nachfrage bis 28.2.2006 verl*ngert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl

Reply via email to