I have a Perl script test.pl which includes another Perl module fact.pm which is under crypt/Module dir. the source code of crypt/test.pl is:
#!/usr/bin/perl
use Term::ANSIColor qw(:constants);
use File::Path;
use POSIX qw(strftime);
use File::Basename qw(dirname);
use Cwd qw(abs_path);
use lib dirname(dirname abs_path $0);
use crypt::Module::fact qw(factorial);
&factorial();#function present in fact.pm
print("Thanks for that thought \n");
The PAR packer command given is
pp -M Module::fact -o test test.pl
on copying just the executable test on a different directory path and executing it I am getting the below error:
Can't locate crypt/Module/fact.pm in @INC (you may need to install the crypt::Module::fact module)
how is it possible to include the module in the executable?