in reply to WWW::Mechanize redirection problem
You can try Win32::IE::Mechanize module. It will open IE's session. If your javascript is checking browser then you can fool it.
Also check if, before accessing new page, 'sleep' for few seconds could do the job. Sometimes the script works too fast and you do not pull-out page till that time.