in reply to What's the best way to use $mech->success?

$mech->status gives you the HTTP status code returned. You could probably see more clearly what was happening by checking this code.

The simple test is a 200 is a good page, everything else is an error of some sort. You could then do different things based on the different errors.

  • Comment on Re: What's the best way to use $mech->success?