Hello,
I'am new to Perl and DBI so excuse me if the question is (so) stupid.
I installed the DBI and the DBD::Oracle modules. Installation and tests
worked well.
I try a little script to connect to database and it failed.
Here is the few lines:
use DBI;
use strict;
Main();
sub Main {
$dbh = DBI->connect('dbi:Oracle:', 'john/wayne@western','');
}
Perl failed with this error message:
Global symbol "$dbh" requires explicit package name at ./Insert.pl line 13.
Execution of ./Insert.pl aborted due to compilation errors.
The sqlplus line worked well so i'am sure it's not a problem with
user/passwd.
So where is the problem?