On Fri, 4 Apr 2003 at 16:29, Mike Butler opined:
MB:Thanks, Andrew. I added CGI::Carp qw(fatalsToBrowser); to the script. That's
MB:a big help. The error message that I get now is:
MB:Software error:
MB:Undefined subroutine &main::param called at simpleform.cgi line 6.
MB:
MB:Line 6 is my $username = param('username');
MB:
MB:Any idea why param is undefined?
you should reread the docs for CGI:
use CGI;
$q = new CGI;
print $q->header;
print $q->param('username');
etc.
OR
use CGI qw/:standard/;
print header;
print param('username');
etc.
when you import the standard functions into your namespace, you don't need
to create the CGI object. you *can't* do this:
use CGI;
print header;
print param('username');
which i think is what you were originally trying to do.
perldoc CGI
or, if you don't have access to a shell try
http://search.cpan.org/author/LDS/CGI.pm-2.91/CGI.pm
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]