Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: LWP::Simple? Prototype mismatch?

by Arunbear (Parson)
on May 16, 2005 at 13:30 UTC ( #457444=note: print w/replies, xml ) Need Help??

in reply to LWP::Simple? Prototype mismatch?

This happens because both LWP::Simple and CGI are exporting a sub called head. You aren't using LWP::Simple::head so to prevent it from being imported you can replace
use LWP::Simple;
use LWP::Simple qw/get/;

Replies are listed 'Best First'.
Re^2: LWP::Simple? Prototype mismatch?
by Fletch (Chancellor) on May 16, 2005 at 13:47 UTC

    This is why it's a good practice to always specify exactly what you're importing (either by listing it explicitly or by using an appropriate :TAG), and to explicitly say use Module () if you're not importing anything.

Re^2: LWP::Simple? Prototype mismatch?
by George_Sherston (Vicar) on May 16, 2005 at 13:53 UTC
    Aaah... thankyou. Well, they've been building subs left right and centre.. I remember when this was open country as far as they eye could see.. that's progress.. Thanks again, JR

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://457444]
[Discipulus]: if i can suggest La Reine Margot too is a great book and obviously The Count of Monte Cristo that is a chef-d'œuvre
[Discipulus]: The red sphinx is about Rechilieu, absolutely thrilling
[erix]: thanks, Discipulus - I got them lined up at gutenberg :)
[erix]: I red the musketeers and Monte Cristo but both a very long time ago (many decades ago)
[erix]: *read
[Discipulus]: dunno if a young people can well understand the deep of Montecristo

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-05-24 07:25 GMT
Find Nodes?
    Voting Booth?