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

Conflict between CGI and LWP modules

Thread Next
November 20, 2001 10:30
Conflict between CGI and LWP modules
Message ID:
In diagnosing a problem, I've discovered that this program:
use CGI qw/:standard/;
use LWP::Simple ;

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

If I change the program to:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About