Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Open web-adress as filehandle

by LanX (Saint)
on Aug 18, 2014 at 08:19 UTC ( #1097812=note: print w/replies, xml ) Need Help??

in reply to Open web-adress as filehandle

> open a file on the web .... mechanize ...

As a side note, mechanize seems overkill for that task.

While not strictly core, LWP::Simple should be on most systems as dependency of the cpan client (well IMHO I didn't check yet°)

So just get("url") the $content and then open the reference \$content to a filehandle.

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

°) I'm not sure anymore about the most basic "fetch from Web" mechanism of cpan-client, but LWP was one of the options my system used...

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2023-12-08 15:58 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (36 votes). Check out past polls.