Regards, Peter
--
Peter Billam www.pjb.com.au www.pjb.com.au/comp/contact.html
See 'perldoc -q HMTL':
"How do I fetch an HTML file?"
That FAQ really doesn't deal with HTML at all but with how to get a
resource that is identified by a URL.
jue
Peter> Greetings. I'd like to fetch a file designated by a URL, loading
Peter> it straight into a string of bytes rather than having to create
Peter> temporary files.
use LWP::Simple;
my $bytes = get "http://example.com/some/url/here";
No temp file required.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
and Juergen Exner wrote:
> See 'perldoc -q HMTL':
> "How do I fetch an HTML file?"
where indeed it says:
> # simplest version
> use LWP::Simple;
> $content = get($URL);
Many thanks, aptitude install libwww-perl
is the missing link I needed :-)
Thanks, regards, Peter