in reply to WWW::Mechanize and Cookies generated through Javascript
Jethro's advice is good but I would be careful about launching a browser out of a mod_perl instance. I would try to scrape the cookie from the source with a regex first, then turn to the heavier user agents. An alternative might be WWW::Scripter with WWW::Scripter::Plugin::JavaScript which only pulls in spidermonkey rather than a full browser.
In Section
Seekers of Perl Wisdom