in reply to Re^2: packaging perl
in thread packaging perl

Can you provide the following information?

If you can provide this information, that could help others figure out what's happening and how to fix it.

Replies are listed 'Best First'.
Re^4: packaging perl
by Jocqui (Novice) on Jun 20, 2014 at 06:03 UTC

    Here is an example of the code i am using in the start.pl

    #!/usr/bin/perl use strict; use warnings; use Time::HiRes qw(usleep); require moduleA; require moduleB; &moduleA::functionA(); &moduleB::functionA(); &moduleB::functionB(); __END__

    and the perl moduleA

    package moduleA; use strict; use warnings; require Expect; require Time::HiRes; require moduleB; use Time::HiRes qw(usleep); sub functionA() { my variableA ="&moduleB::functionB"; .............. ................ return someihng; }

    When using pp

     pp start.pl -I ModuleA.pm ModuleB.pm -o start

      % pp -I /foo hello          # Extra include paths

      ModuleA.pm does not look like an include path :)

      However, pp still manages to pack both ModuleA.pm and ModuleB.pm , even if moduleB.pm is packed as another script

      This is what is normally typed

      If for some reason . is not in @INC its
      $ pp -I . -x start.pl -o start

      My test files in the form of a patch (apply with patch -p0 -i my.patch )