Gossamer Forum
Home : Products : Others : MySQLMan :

perl -c mysql.cgi errors

Quote Reply
perl -c mysql.cgi errors
Can someone help me through this?
When running perl -c mysql.cgi I get these errors. below the error is the actual line from the mysql.cgi script.

ERROR: syntax error ...at line 30, next 2 tokens "use lib"
LINE 30: use lib '/cgi-bin/mysqlman';

ERROR: syntax error...at line 44, next 2 tokens "=>"
LINE 44: explain => 1,

ERROR: syntax error...at line 58, next 2 tokens "} or "
LINE 58: eval { &main; } or &cgierr("fatal undef error: $@", 1); # Trap any fatal errors so the program hopefully

ERROR: syntax error...at line 68, next 2 tokens "my $in "
LINE68: my $in = new CGI;

ERROR: syntax error...at line 71, next 2 tokens "->"
LINE 71: if (defined ($in->param('db_user')) || defined ($in->param('db_host'))) { &do_login($in); }

ERROR: syntax error...at line 72, next token "else"
LINE 72: else {

If someone can set me straight on what these lines need to be to avois the syntax error, I would be appreciative. Thanks.


Quote Reply
Re: perl -c mysql.cgi errors In reply to
Hi!

You are using perl4 to check the syntax, you need perl5.

Cheers,

Alex

--
Gossamer Threads Inc.