|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^5: Web Scraping on CGI Scripts?by tospo (Friar) |
| on Oct 13, 2011 at 08:56 UTC ( #931168=note: print w/ replies, xml ) | Need Help?? |
|
that's because after the first "follow_link" action, $mech_cgi is now on a different page (it behaves like a browser) and then you issue the next follow_link command but that links doesn't actually exist on the page you are on now. Add "$mech_cgi->back" before teh end of the loop and you will iterate through all the links.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||