in reply to Re^3: Search for abcNUMBERdef, make it a variable, then do math?
in thread Search for abcNUMBERdef, make it a variable, then do math?
Prototype mismatch: sub main::head: none vs ($) at stats.cgi line 19
See CAVEAT in the LWP::Simple docs:
Note that if you are using both LWP::Simple and the very popular CGI.pm module, you may be importing a head function from each module, producing a warning like "Prototype mismatch: sub main::head ($) vs none". Get around this problem by just not importing LWP::Simple's head function, like so:
use LWP::Simple qw(!head); use CGI qw(:standard); # then only CGI.pm defines a head()
As for "The first part of the script is" part: why are you parsing the QUERY_STRING yourself, when you're using CGI.pm anyway — as the warning and your line my $id = param('id') indicates? CGI.pm does the parsing already, so you can just drop that code...
|
---|