Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
My DBI script works correctly when run by a web server, but I get syntax errors when running it from the command line (Perl 5 and FreeBSD server). Here's the code:
Here are the corresponding errors:use DBI; ($db) = DBI->connect('DBI:mysql:DatabaseName, $dbusername);
What's the problem?syntax error in file MyScript.cgi at line 66, next 2 tokens "use DBI" syntax error in file MyScript.cgi at line 82, next 2 tokens "->"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: script using DBI won't run from command line but runs great thru browser. why?
by btrott (Parson) on Jun 06, 2000 at 03:02 UTC | |
Re: script using DBI won't run from command line but runs great thru browser. why?
by IndyZ (Friar) on Jun 06, 2000 at 05:22 UTC | |
Re: DBI script works on command line but not in browser
by codehopper (Initiate) on Mar 07, 2003 at 18:10 UTC |
Back to
Seekers of Perl Wisdom