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

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

Replies are listed 'Best First'.
Re^5: packaging perl
by Anonymous Monk on Jun 20, 2014 at 08:16 UTC

    % 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 )