Dec 12, 2000, 2:28 PM
Post #1 of 1
If you have the text based browser installed on your system called "lynx", you can use that like so,
How do I fetch an HTML page on the web?
$url = "http://www.perlguru.com";
$html_code = `lynx -source $url`;
Which runs a system command using those back ticks ``.
The other way, which tends to be used more often, is by using the LWP set of modules, the simplest way is by using LWP::Simple;
$the_html = get("http://www.perlguru.com");
# do something with $the_html