Problem using use CGI and LWP modules together
- From: Nick Wedd <nick@xxxxxxxxxxxxx>
- Date: Thu, 11 Oct 2007 16:12:38 +0100
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
.
- Follow-Ups:
- Re: Problem using use CGI and LWP modules together
- From: Jim Gibson
- Re: Problem using use CGI and LWP modules together
- From: Gunnar Hjalmarsson
- Re: Problem using use CGI and LWP modules together
- Prev by Date: Re: Building Text::Iconv on Windows
- Next by Date: Re: Problem using use CGI and LWP modules together
- Previous by thread: net::ssh::Perl connecting to f-secure ssh server
- Next by thread: Re: Problem using use CGI and LWP modules together
- Index(es):
Relevant Pages
|
|