Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Perl Packager with ':all' imports

by myforwik (Acolyte)
on Dec 21, 2013 at 01:13 UTC ( [id://1068005]=perlquestion: print w/replies, xml ) Need Help??

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 ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1068005]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-18 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found