in reply to Displaying the source code of a web page

if using Linux
use wget command

$url=<>; chomp($url); print "$url"; system("wget $url");

read wget manual for refining this code according to your needs

Replies are listed 'Best First'.
Re^2: Displaying the source code of a web page
by Anonymous Monk on Jun 19, 2012 at 10:05 UTC

    If you're going to suggest shelling out to wget, at least take the shell out of the equation:

    system("wget", $url);