Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Why would LWP::Simple::get stop working?

by dpmott (Scribe)
on Jun 20, 2005 at 20:05 UTC ( [id://468476]=note: print w/replies, xml ) Need Help??


in reply to Re: Why would LWP::Simple::get stop working?
in thread Why would LWP::Simple::get stop working?

This suggestion is getting me closer.

It turns out that you must have a 'use' statement that looks like this to get access to the $ua object:
use LWP::Simple qw/$ua/;
If you want to use get() without fully qualifying it, then you also have to include that along with $ua.

When I specify the '$ua' in the import list, everything starts working, and working well.

If I do not specify anything in the import list, then LWP::Simple::get() or just get() never returns.

It looks like my PPM is broken, too, so I think that I have a re-install in my near future. I must've gotten my hands on a bad module somewhere...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://468476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 00:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found