in reply to Method dive not found on WWW::Mechanize::Firefox / MozRepl::RemoteObject

Ouch. It seems that this is broken and the version of MozRepl::RemoteObject that fixes this is not yet released on CPAN. The workaround fix is likely adding these lines at the start of your script until you can upgrade to v0.32 of MozRepl::RemoteObject:

use MozRepl::RemoteObject; BEGIN { if( ! *MozRepl::RemoteObject::Methods::dive{ CODE } ) { *MozRepl::RemoteObject::Methods::dive = \&MozRepl::RemoteObjec +t::__dive; }; }; use WWW::Mechanize::Firefox;
  • Comment on Re: Method dive not found on WWW::Mechanize::Firefox / MozRepl::RemoteObject
  • Download Code

Replies are listed 'Best First'.
Re^2: Method dive not found on WWW::Mechanize::Firefox / MozRepl::RemoteObject
by spacebat (Beadle) on Apr 10, 2012 at 14:34 UTC

    Make that:

    use MozRepl::RemoteObject; BEGIN { if( ! *MozRepl::RemoteObject::Methods::dive{ CODE } ) { *MozRepl::RemoteObject::Methods::dive = \&MozRepl::RemoteObjec +t::Instance::__dive; }; }; use WWW::Mechanize::Firefox;

      Should be fixed now, as v0.32 of MozRepl::RemoteObject is on its way to the CPAN mirrors.

Re^2: Method dive not found on WWW::Mechanize::Firefox / MozRepl::RemoteObject
by agaved (Novice) on Apr 10, 2012 at 19:23 UTC

    That worked.

    Many thanks indeed

    Adriano