Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi I have installed WWW::Mechanize using ppm. Im Running windows XP and active state version 5.8. I need to use WWW::Mechanize to visit one of my sites and follow all of the links. The site in question has 3 kinds of links, 2 of which are javascript functions which in turn builds a url. I have code to identify and deal with the javascript links. I want to visit each page of my site and read the link url and link text then output it to a file, and then follow all of the links I have found. I have managed to do this using the $mech->links method for the first page of the site, but I need to follow each of the links in order. Can anyone suggest how to do this?