myforwik has asked for the wisdom of the Perl Monks concerning the following question:

Hello wise monks,

I am having trouble using Perl Package (par / pp) with IUP. My perl file has:

use IUP ':all';

But pp doesn't seem to pickup the IUP pm files as dependencies, I have to manually specify every single one like this:

pp -M IUP::Button ... ... -M IUP::Zbox test.pl -o test.exe

Is there a way to get pp to work right with the ':all' thingy?

Replies are listed 'Best First'.
Re: Perl Packager with ':all' imports
by educated_foo (Vicar) on Dec 21, 2013 at 01:47 UTC
    I haven't used PAR/pp, but it looks like it uses some heuristics rather than actually running your code to find the needed modules. If IUP uses plug-ins or some other kind of tricky module loading, PAR will probably miss it. If I were you, I would run your app, and print out all the loaded modules (keys %INC) right before it exits.
      thats what pp -x does
Re: Perl Packager with ':all' imports (pp -x ... )
by Anonymous Monk on Dec 21, 2013 at 01:49 UTC
    pp -x ... pp -x ... pp -x ... pp -x ... pp -x ... pp -x ... pp -x ...