in reply to why this simple cgi script returns error ? !
You made two errors posting your question:
You posted your node to Perl Monks Discussion. (I moved it to Seekers of Perl Wisdom.) The former is for questions and discussions about this site. The latter is help with Perl.
I think you meant to post the error message from the log file at the end, but you reposted an earlier snippet.
You made two errors in your code:
The first is use cgi;. That should be use CGI;. What you have will *appear* to work in case-insensitive systems like Windows, and fail completely on case-sensitive systems like unix.
The second is <br>. That means "read a line from the file handle br." You want
orprint $cgi->param('name'), $cgi->br;
print $cgi->param('name'), '<br>';
Update: Typo fixes
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: why this simple cgi script returns error ? !
by adam_blackice (Acolyte) on Apr 04, 2007 at 23:42 UTC | |
by fenLisesi (Priest) on Apr 05, 2007 at 06:17 UTC |