programming-examples/perl/Network/Get a web page.pl
2019-11-15 12:59:38 +01:00

9 lines
162 B
Raku

use LWP::Simple;
$content = get("http://www.cpan.org/doc/FAQs/index.html");
open FILEHANDLE, ">file.txt";
print FILEHANDLE $content;
close FILEHANDLE;