in reply to Re^2: Can't locate object error
in thread Can't locate object error

So maybe your version at home is older and the 'form' method has gone away. The documented interface of WWW::Mechanize does not know about it.

Try

$m->form_name('LoginForm');
instead.