# 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 }
In reply to Re^2: How to read from an URL ?
by itub
in thread How to read from an URL ?
by Ben Win Lue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |