open(OUTFILE, ">out.txt"); my $htmlpage = `lynx -source http://www.perl.com`; print OUTFILE $htmlpage; close OUTFILE;