> use strict;
> sub Main {
> $dbh = DBI->connect('dbi:Oracle:', 'john/wayne@western','');
> }
> So where is the problem?
When you use "use strict" you need to declare your variables or give
them full names:
a) leave out "use strict" (not recommended)
b) my $dbh = DBI->...
c) $main::dbh = DBI->
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 =