Search code examples
perlweb-crawlerlwp

My LWP Script Not Working


I am running

#!/usr/bin/perl -w
use strict;
use LWP::Simple;

Solution

  • The variable $site has the html code.

    Also you can use the function getstore to save the html data to a file, like:

    my $http_code = getstore( 'http://www.google.com/', 'google.html' );