in reply to WWW::Mechanize login

If you can figure out what URL the Javascript accesses, you can imitate that with WWW::Mechanize. The LiveHTTPHeaders Filrefox extension can be invaluable for this kind of thing; not only do you see the requests and responses, but you get a chance to see what's comg by in the way of cookies and the like.