in reply to PAR::pp with self created modules
Hello State_Space,
I don’t understand what you’re doing in the .pl file. :-(
However, to include .pm files in the packed package, use -I path/to/lib, followed by -M Module for each module to be included. For example, I used this command:
13:12 >pp -o greet.exe -I C:/Users/User/Documents/Programmes/Perl/lib +-M Module1 -M Module2 -M Module3 1433_SoPW.pl 13:12 >
When run from a directory containing the file 1433_SoPW.pl, and with suitable modules defined in lib/Module1.pm, lib/Module2.pm, and lib/Module3.pm, this successfully created a packed executable greet.exe with the 3 modules included.
Update: Thanks, Anonymous Monk (below), a single -x is indeed better than multiple -M options:
17:30 >pp -o hi.exe -I ./lib -x 1433_SoPW.pl Hello from Module1! A pleasant frobnication to you from Module2! Bye! from Module3. 17:30 >hi Hello from Module1! A pleasant frobnication to you from Module2! Bye! from Module3. 17:30 >
(For my own convenience I had already moved /lib into the current directory.)
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PAR::pp with self created modules
by Anonymous Monk on Oct 31, 2015 at 07:26 UTC | |
|
Re^2: PAR::pp with self-created modules (updated)
by State_Space (Acolyte) on Nov 02, 2015 at 23:28 UTC |