Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: PAR Question

by crabbdean (Pilgrim)
on Jul 18, 2004 at 11:37 UTC ( #375368=note: print w/replies, xml ) Need Help??

in reply to PAR Question

Yes, I also had similar problems when attempting to do such a thing. For additional modules do:

pp -M this::module -M that::module -o out.exe

... and I believe in reference to your last question you must include two things:
- a similar folder name of the (module or script) you want to import as it appears in your @INC using -I
- and also add the script using a full path name using -M.

pp -I \another\folder -M some::module -M c:\full\path\ -o out.exe

Note: I'm never done this way of -I although I believe its the solution and will be attempting on the next PAR I do

Also, I'm not sure if in writing the command in any particular order is important but I'd suggest doing -I before -M just in case.

Additionally, if you don't create the additional folder in the archive using -I it will drop your own that you imported using -M into the root of the PAR archive. Although this isn't probably the cleanest way to pack the archive, I found for my programs (EXE's) it still finds the because it must search this root folder of the archive for included modules/scripts.

Also, the PAR archive is really a zipped archive which can be viewed in Winzip. If you create the PAR file without using the -o flag like this:

pp -I \another\folder -M some::module -M c:\full\path\

... and then open the resulting PAR file in winzip you'll get an idea of the structure and setup of the PAR archive. Hope that helps.

The Funkster of Mirth
Programming these days takes more than a lone avenger with a compiler. - sam
RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://375368]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2018-03-23 02:18 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (287 votes). Check out past polls.