lampros21_7 has asked for the wisdom of the Perl Monks concerning the following question:
It says in the documentation for WWW::Mechanize that i need the HTML::TreeBuilder but i have installed that so thats not the problem. The $stripped_html[$x] = $webcrawler( format => "text"); line is part of the module WWW::Mechanize.pm
Thanks
our $webcrawler = WWW::Mechanize->new(); #Grab the contents of the URL given by the user our $webcrawler = get($url_name); # Put the links that exist in the HTML of the URL given by the user i +n an array our @website_links = $webcrawler->links($url_name); # The HTML is stripped off the contents and the text is stored in an +array of strings our $x = 0; my @stripped_html; $stripped_html[$x] = $webcrawler( format => "text");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Syntax error for WWW::Mechanize
by GrandFather (Saint) on Jul 30, 2005 at 11:56 UTC | |
by lampros21_7 (Scribe) on Jul 30, 2005 at 12:58 UTC | |
by jhourcle (Prior) on Jul 30, 2005 at 13:32 UTC | |
by GrandFather (Saint) on Jul 30, 2005 at 13:27 UTC |