in reply to Can't locate object error

A oneliner just popped into my head:

perl -le "sub UNIVERSAL::versions{ no strict 'refs'; printf qq(%s: %s\ +n), $_, ${$_.qq(::VERSION)}for @{ref $_[0].'::ISA'}}; $_->versions fo +r @ARGV" WWW::Mechanize WWW::Mechanize::Frames

Most likely the version of one of the modules is too old.

Replies are listed 'Best First'.
Re^2: Can't locate object error
by Anonymous Monk on May 21, 2008 at 16:10 UTC
    I changed $m->form to $m->form_name and it now works.

    So the module was installed successfully after all, but I guess things have changed and 'form' isn't accepted anymore. It could be that my personal server is running an old instance of WWW::MEchanize and thus 'form' works. Whereas on my work server which has the newest installation of wWW::Mechanize, 'form' has now been replaced by 'form_name'. Thanks

Re^2: Can't locate object error
by Anonymous Monk on May 21, 2008 at 15:47 UTC
    But I just installed the most recent version of WWW::Mechanize and WWW::Mechanize::Frames .... so how could that be? How could my version be old if I just installed it from cpan using the install command?