Hello Monks,
I'm using PAR::pp. I've read though the documentation.
PAR Tutorials
PAR FAQ
Honestly I don't understand a lot of it. I had a .pl that was 500 lines long and split it into 1 .pl and 3 .pms. The .pm's are in the local .pl folder .\lib. I use
pp -gui -o name.exe name.pl
in perl console, it packs but it doesn't add the 3 .pms in the local \lib. I know the libraries don't get added because I unzip the packed package and they're not contained within.
From reading this
Perlmonks post I solved the problem by moving the 3 .pm's to perl\site\lib. However the modules are very specialized and I want them close to the .pl for future editing. How can I add them to the package without moving them to perl\site\lib?
Below is the top of my .pl where I change @INC path for the local modules
#Modules
use strict;
use warnings;
#Changing @INC to Self created modules
use File::Basename qw(dirname);
use Cwd qw(abs_path);
use lib dirname(dirname abs_path $0) . '\name\lib';
#Self Modules
use SA qw(extract);
use CA qw(extract);
use ECC qw(extract);
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.