use WWW::Scripter; $w = new WWW::Scripter; $w->use_plugin('JavaScript');