Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: using LWP::Simple to fetch binary file (gnu zip)

by BrowserUk (Patriarch)
on Jan 25, 2012 at 12:02 UTC ( [id://949887]=note: print w/replies, xml ) Need Help??


in reply to Re^2: using LWP::Simple to fetch binary file (gnu zip)
in thread using LWP::Simple to fetch binary file (gnu zip)

The problem is you are calling a function as a method:

$hstatus = LWP::Simple->getstore ($text, $filename);

Change that to:

$hstatus = getstore ($text, $filename);

And it will work.

Effectively you are calling the function with the string 'LWP::Simple' as the first argument where it is expecting a URL. It tries to parse that to discover the protocol (http://, https://, ftp:// etc.) that it should use and doesn't find anything it recognises, so it return 501-Not Implemented.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^4: using LWP::Simple to fetch binary file (gnu zip)
by Largins (Acolyte) on Jan 25, 2012 at 21:52 UTC

    Thanks very much.
    Although I have been programming for many years (1st line of code on a Burroughs t series 1965), I am new (by a few months) to perl
    For the life of me, I couldn't see what was wrong, but now I see my error

    Thanks again, and thanks to perlmonks for this site

    Largins

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-25 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found