Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Displaying the source code of a web page

by ansh batra (Friar)
on Jun 19, 2012 at 05:35 UTC ( [id://976963]=note: print w/replies, xml ) Need Help??


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);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://976963]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-23 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found