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

Hi monks
I'm using pp in order to get an exe out of my perl code
it seems to work fine .
During the seesion I read some text files , so I need to
bundle them as well .
for now I'm using an app called make_self which TARs all
files and dir in 'pwd' into one sort of binary.
I wanted to know if any of you monks knows a better way
to do that ( maybe even using PP or PAR ) .
The problem is I don't want any user to write somthin like
perl -MPAR = ./foo.par -MHello
I want it to be stand alone executable .

Thanks Monks Michaelg

Replies are listed 'Best First'.
Re: PP can it pack common text file
by zentara (Cardinal) on Oct 10, 2003 at 15:07 UTC
    Just an idea to consider.......why not include the text files right into the script, either as variables with "here documents" or throw them into the __DATA__ section. If you have multiple files, you can use Inline::Files to put them all into separate sections of __DATA__.