in reply to conditional testing for error 500 webpages before following them?

fraizerangus:

Crashes? You've got a die statement in there. Perhaps you'd be better served by using print instead!

Of course, this is only a guess, since you didn't give the error message you receive. But you definitely don't want to die if you want to continue after errors.

...roboticus

When your only tool is a hammer, all problems look like your thumb.