Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Answer: How can my script retrieve the contents of an existing webpage?

( #109748=categorized answer: print w/ replies, xml ) Need Help??

Q&A > HTTP and FTP clients > How can my script retrieve the contents of an existing webpage? contributed by furtive

In reference to vroom's code above, the correct syntax should be:

$webpage=system("lynx -source http://blah.com");

This is necessary since it is the shell that runs Lynx. Otherwise, $webpage would literaly be lynx -source http://blah.com"

Comment on Answer: How can my script retrieve the contents of an existing webpage?
Select or Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2015-07-31 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls