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 in 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");