I use PAR Packager, version 0.991 (PAR version 0.994) on Windows XP with
Camelbox Perl.

 

Here is what I am trying to do: 

I would like to use "pp -o program.exe my_program.pl" in my_project
folder to create an executable:

 

my_project/

      - my_program.pl

      - my_module.pm

      - my_sub_folder/

            o my_other_module.pm

 

 

My problem is:

pp and the resulting program.exe can't locate "my_module.pm". 

 

It dies saying 

 

Can't locate my_project/my_module.pm in @INC (@INC contains:
P:/my_project CODE(0x136894c)
C:\DOCUME~1\kg\LOCALS~1\Temp\par-kg\cache-7f2f696b30a4d7cbd896ace1c1c2ec
684c64834a\inc\lib
C:\DOCUME~1\kg\LOCALS~1\Temp\par-kg\cache-7f2f696b30a4d7cbd896ace1c1c2ec
684c64834a\inc CODE(0x1143da4) CODE(0x11440f4)) at script/my_program.pl
line 11.

BEGIN failed--compilation aborted at script/my_program.pl line 11.

 

I tried the following commands in directory my_project but the error
messages doesn't change:

pp -M my_module.pm -o program.exe my_program.pl

pp -M my_project::my_module -o program.exe my_program.pl

pp -l ./ -o program.exe my_program.pl

 

In my_module I use:

package my_project::my_module;

use FindBin;

use lib "$FindBin::Bin";

 

I appreciate any advice! 

Thank you for your help.

 

Regards,

Nele

Reply via email to