I have a perl program that uses WWW::Mechanize::Firefox
on windows 7 32bit with strawberry perl.
It works fine with the command C:\>perl testcase.pl
. When I compile it with C:\>pp -o testcase.exe testcase.pl
it compiles with no errors.
When I run the testcase.exe
it gives me the error:
Failed to connect to , Can't locate object method "setup" via package "MozRepl::Client" at MozRepl.pm line 224
The code I am using for testcase.pl
is:
#!perl
use MozRepl;
use WWW::Mechanize::Firefox;
use warnings;
system('start firefox');
sleep(5);
$mech = WWW::Mechanize::Firefox->new;
Also note that a program without WWW::Mechanize::Firefox
and MozRepl
does work fine.
The problem has obviously been narrowed down to PAR::Packer
not liking MozRepl
, any idea what it might be?