programming-examples/perl/Network/Get a web page.pl

9 lines
162 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
use LWP::Simple;
$content = get("http://www.cpan.org/doc/FAQs/index.html");
open FILEHANDLE, ">file.txt";
print FILEHANDLE $content;
close FILEHANDLE;