#!/usr/bin/perl use strict; use WWW::Mechanize::Firefox; my $mech = WWW::Mechanize::Firefox->new( activate => 1, # bring the tab to the foreground ); $mech->get('http://google.com'); #### Can't locate object method "new" via package "MozRepl" at /usr/local/share/perl/5.10.1/MozRepl/RemoteObject.pm line 434.