in reply to Logging URLs that don't return 1 with $mech->success

When I run the script I've written, it seems to get stuck in an infinite loop with the first link.

Maybe there's a self-referential link on that page? The usual approach is to use a hash that store all visited URLs, and don't visit them again.

  • Comment on Re: Logging URLs that don't return 1 with $mech->success

Replies are listed 'Best First'.
Re^2: Logging URLs that don't return 1 with $mech->success
by stonecolddevin (Parson) on Sep 10, 2008 at 17:10 UTC

    Aha.

    I had a feeling I missed something. I'll give that a go, hopefully my methodology for checking to see if a link is 'valid' or not is going to work.

    meh.