in reply to Re: How to read from an URL ?
in thread How to read from an URL ?
# examples from the SYNOPSIS use IO::All; "hello world\n" > io('ftp://localhost/test/x'); # save to FTP $content < io('http://example.org'); # GET webpage io('http://example.org') > io('index.html'); # save webpage
And you can also tie it, treat is as a file, and use other IO::All tricks:
my $io = io('http://example.org')->tie; while (<$io>) { # do something }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to read from an URL ?
by Ben Win Lue (Friar) on Apr 02, 2005 at 06:35 UTC | |
by itub (Priest) on Apr 02, 2005 at 16:25 UTC | |
by Ben Win Lue (Friar) on Apr 03, 2005 at 06:42 UTC |