Also, not Perl, but Selenium (http://www.openqa.org/selenium/) is pretty darn nice; it's a Javascript-based automation framework, and works well with Javascript-heavy sites. It can be driven from Perl with Test::WWW::Selenium.
Comment on Re: Win32::OLE VBA to Perl Translation Question about Internet Explorer