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");
In reply to Syntax error for WWW::Mechanize by lampros21_7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |