Gossamer Forum
Home : General : Perl Programming :

CGI error

Quote Reply
CGI error
I'm using CGI and DBI modules and they are working ....
but I always see the following error in my error_log file

Name "main::VARIABLENAME" used only once: possible typo at FILENAME

Quote Reply
Re: CGI error In reply to
What code do you have?

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: CGI error In reply to
Thsi is generating errors

----------------
use CGI;

$user = $query->param('user');

Quote Reply
Re: CGI error In reply to
That doesn't look like it relates to that error - I may be wrong.

Don't you need to create new object first?

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: CGI error In reply to
In Reply To:
Name "main::VARIABLENAME" used only once: possible typo at FILENAME
That's not so much of an error rather a warning returned by perl.

I take it you're running #/path/to/perl -w?

It's just perl letting you know that a variable you've declared isn't actually being used anywhere. If you aren't getting any 500 errors, then I wouldn't worry about it.

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/