I am on a Mac. I have a simple Perl script that uses WWW :: Mechanize :: Firefox to pull out a webpage.
The script works fine when Firefox is already open and running on my computer. Here the line creates an object:
my $mech = WWW::Mechanize::Firefox->new(
launch => '/Applications/Firefox.app'
);
However, when Firefox shuts down and I run the script, I get the following error:
exec failed: Permission denied at /Library/Perl/5.12/MozRepl/RemoteObject.pm line 463
at /Library/Perl/5.12/MozRepl/RemoteObject.pm line 463
What should I do to give perl script permission to run Firefox?
source
share