in reply to Re: Authentication with WWW::Mechanize
in thread Authentication with WWW::Mechanize
All that the code in submitForm() is trying to do is prevent double-submits. It does the form.submit() only once, the first time called. (Returning false from an onsubmit handler says don't do a submit - they coulda structured this as just returning true or false, I think)