in reply to CGI error with simple script
It is possibly a permissions problem in that the webserver user can't execute your script. Also, consider adding the following code, which may help you identify problems:
use CGI::Carp qw(fatalsToBrowser);
Update: Of course, the main thing wrong is that you don't print a header, which the browser needs. Do this before you print anything else:
print header();
Another update: Sigh. As [id://tirwhan] pointed out below, if you're using CGI.pm in the function-interface manner, you need to explicitly import the functions. This usually does it (you'll want to check CGI to make sure, though):
use CGI qw(:standard);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI error with simple script
by tirwhan (Abbot) on Jan 10, 2006 at 18:47 UTC | |
by rndmtxt (Initiate) on Jan 10, 2006 at 18:52 UTC | |
|
Re^2: CGI error with simple script
by rndmtxt (Initiate) on Jan 10, 2006 at 18:43 UTC | |
|
Re^2: CGI error with simple script
by rndmtxt (Initiate) on Jan 10, 2006 at 18:45 UTC |