in reply to retrying an action that could fail

I wonder if you could use LWP::UserAgent::Determined - "a virtual browser that retries errors".

The problem is, I don't know how to make WWW::Mechanize inherit from "LWP::UserAgent::Determined" instead of "LWP::UserAgent".

Replies are listed 'Best First'.
Re: Re: retrying an action that could fail
by simonm (Vicar) on May 24, 2004 at 18:54 UTC
    The problem is, I don't know how to make WWW::Mechanize inherit from "LWP::UserAgent::Determined" instead of "LWP::UserAgent".

    You could try just declaring it with @WWW::Mechanize::ISA = "LWP::UserAgent::Determined" after the modules have been loaded; from a first glance at the source it looks like that'd be sufficient.