Yeah, I usually use something like that as well. I often look at the actual respons as well, because some sites I connect to do reply with a message like "Could not connect to the database, retry later". From an HTTP (and hence WWW::Mechanize) point of view, the request succeeded. I typically wait a few seconds before retrying.