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?? |
The problem is you are calling a function as a method:
Change that to:
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.
In Section
Seekers of Perl Wisdom
|
|