Problem using use CGI and LWP modules together



I am trying to develop a script to run on a web server. It uses the
modules
GD to do stuff with images
CGI to get the parameters from the URI
LWP to fetch stuff from the web

If my program begins
#!/usr/local/bin/perl
use strict;
use GD;
use GD::Text;
use CGI qw(:standard);
use LWP::Simple;
I get the error message
Prototype mismatch: sub main::head: none vs ($) at s4pngu.pl line 6
and if I change the order of the last two lines quoted above,
#!/usr/local/bin/perl
use strict;
use GD;
use GD::Text;
use LWP::Simple;
use CGI qw(:standard);
I get the error message
Prototype mismatch: sub main::head ($) vs none at
/usr/local/lib/perl5/5.8.8/CGI.pm line 305.

Removing the GD lines does not change this.

My guess is that the LWP and CGI modules are incompatible somehow. Am I
right? Or am I invoking them wrong? Is there a recommended solution?

Nick
--
Nick Wedd nick@xxxxxxxxxxxxx
.



Relevant Pages

  • Re: Web Connectivity
    ... CGI works in Windows too.... ... Probably a jRCS solution would work better, would not require jBASE on the ... >>> What is the easiest way to query and display jBase ... >>> Linux and the web server is IIS on 2003 server. ...
    (comp.databases.pick)
  • [Full-Disclosure] sh-httpd `wildcard character vulnerability
    ... sh-httpd is a shell script-based Web server that supports GET and HEAD methods, and a CGI 1.1 interface. ... It's not real fast, and it's probably not real secure, but it is really small. ... xploithackermailcom INetCop Security Home: http://www.inetcop.org ...
    (Full-Disclosure)
  • [Full-Disclosure] sh-httpd `wildcard character vulnerability
    ... sh-httpd is a shell script-based Web server that supports GET and HEAD methods, and a CGI 1.1 interface. ... It's not real fast, and it's probably not real secure, but it is really small. ... xploithackermailcom INetCop Security Home: http://www.inetcop.org ...
    (Full-Disclosure)
  • [Full-Disclosure] [VulnWatch] sh-httpd `wildcard character vulnerability
    ... sh-httpd is a shell script-based Web server that supports GET and HEAD methods, and a CGI 1.1 interface. ... It's not real fast, and it's probably not real secure, but it is really small. ... xploithackermailcom INetCop Security Home: http://www.inetcop.org ...
    (Full-Disclosure)
  • Re: How to run perl cgi under TomCat server?
    ... some PERL cgi programming. ... AKAIK, Tomcat is a servlet container, not a web server. ... What I have is called Apache Tomcat server. ... How you configure a web server to run CGI scripts is a feature of the ...
    (comp.lang.perl.misc)