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 "->"
Back to
Seekers of Perl Wisdom