Re: Some problem with connection

2002-01-09 Thread Uwe Voelker
> 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->

Some problem with connection

2002-01-09 Thread DAGNICOURT Sebastien - NTR ( [EMAIL PROTECTED] )
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 =