develooper Front page | perl.libwww | Postings from November 2001

Conflict between CGI and LWP modules

Thread Next
From:
KEVIN ZEMBOWER
Date:
November 20, 2001 10:30
Subject:
Conflict between CGI and LWP modules
Message ID:
sbfa5ac8.097@ccp2.jhuccp.org
In diagnosing a problem, I've discovered that this program:
#!/usr/local/bin/perl
use CGI qw/:standard/;
use LWP::Simple ;

causes this error:
Prototype mismatch: sub main::head vs ($) at ./z.pl line 3

If I change the program to:
#!/usr/local/bin/perl
use CGI;
use LWP::Simple ;

the error goes away.

Does this mean you can't mix styles (function-oriented vs. object-oriented) in the same program?

Thanks for your advice.

-Kevin Zembower


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About