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

Re: how to open a data file via http

by mreece (Friar)
on Feb 27, 2007 at 03:19 UTC ( #602248=note: print w/replies, xml ) Need Help??


in reply to how to open a data file via http

another option, open a scalar as a filehandle:
use LWP::Simple; my $data = get('http://www.jaywil.com/libsearch/SAMPLE.TXT'); open DATAFILE, '<', \$data; while (<DATAFILE>) { print $_; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2021-03-01 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (28 votes). Check out past polls.

    Notices?