Prototype mismatch: sub main::head vs ($) at ...

A

Aaron DeLoach

The line that produces the error: "Prototype mismatch: sub main::head vs ($)
at line ..." contains a call to the LWP module as follows: "use
LWP::Simple;"

Why am I getting this error in the error log?
 
A

Anno Siegel

Aaron DeLoach said:
The line that produces the error: "Prototype mismatch: sub main::head vs ($)
at line ..." contains a call to the LWP module as follows: "use
LWP::Simple;"

Why am I getting this error in the error log?

You have probably defined a function named "head" elsewhere in your
program. When LWP::Simple tries to export its function "head", Perl
reports a clash. Whether the function is defined in your program,
or imported from somewhere else is anyone's guess, since you show
no code.

Anno
 
B

Ben Morrow

Quoth (e-mail address removed)-berlin.de (Anno Siegel):
You have probably defined a function named "head" elsewhere in your
program. When LWP::Simple tries to export its function "head", Perl
reports a clash. Whether the function is defined in your program,
or imported from somewhere else is anyone's guess, since you show
no code.

Applying PSI::ESP: see the section 'CAVEAT' of perldoc LWP::Simple.

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top