in reply to Re^2: Logging URLs that don't return 1 with $mech->success
in thread Logging URLs that don't return 1 with $mech->success

The top-level urls are processed differently than the links found at the urls, so it makes no sense to use the same "checked" hash for both types of urls.

The following should be removed:

if ( $_ eq $checked_urls{$_} ) { print "Link checked, skipping\n"; next; } else

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

    Thank, ikegami, I had been looking at that ad scratching my head over it. Two of the same if statements in two different places didn't really look right to me.

    meh.