Hello Perl Monk....I seek your wisdom
I am trying to use pp to package a file and a script into a file called iDPAswitch.exe
the command I use is:
pp -o iDPAswitch.exe -a #iDPA_SW_Template220 iDPAswitch-2_3_0.pl
it seems to package fine until I execute th iDPAswitch.exe file. I get the below error
error: member not found
at script/main.pl line 26.
Extract of iDPAswitch.exe failed
I have tried altering the syntax as follows to include non-core modules & core modules needed
pp -o -B iDPAswitch.exe -a #iDPA_SW_Template220 iDPAswitch-2_3_0.pl
I get the same "member not found error".
I have opened iDPAswitch.exe with 7-zip and confirmed that iDPAswitch-2_3_0.pl is in the scripts directory and the Template file included is one level up/back
The contents of main.pl are as follows
if (defined $ENV{PAR_APP_REUSE}) {
warn "Executable was created without the --reusable option. See 'p
+erldoc pp'.\n";
exit(1);
}
my $zip = $PAR::LibCache{$ENV{PAR_PROGNAME}} || Archive::Zip->new(__FI
+LE__);
my $member = eval { $zip->memberNamed('script/iDPAswitch-2_3_0.pl') }
or die qq(main.pl: Can't open perl script "script/iDPAswitch-2
+_3_0.pl": No such file or directory ($zip));
# Remove everything but PAR hooks from @INC
my %keep = (
\&PAR::find_par => 1,
\&PAR::find_par_last => 1,
);
my $par_temp_dir = File::Spec->catdir( $ENV{PAR_TEMP} );
@INC =
grep {
exists($keep{$_})
or $_ =~ /^\Q$par_temp_dir\E/;
}
@INC;
PAR::_run_member($member, 1);
How can I identify what "member not found" its failing on and how to rectify it
Thanks in Advance....