in reply to How do I stop this from being a never ending loop
You don't even need to bother with all of that code, if you just use the right module
use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new; $mech->get( 'http://bleep.com/index.php' ); printf "%s\n", $_->URI for $mech->links;
See also: WWW::Mechanize::Link
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I stop this from being a never ending loop
by j3f (Novice) on Jan 17, 2009 at 02:28 UTC |