On Wednesday 25 February 2004 08:39 am, Corey Goldberg wrote:
> I have 2 perl files.. one is loaded from the other with 'require'.
>
> I would like to compile this into a single executable with PAR (pp). Is
> this possible?
>
> say the 2 files are: foo.pl and bar.pl
> inside foo.pl, there is the line: require('bar.pl')
>
> the most success i have had so far is by using this to compile:
> pp -o foobar.exe foo.pl bar.pl
My solution would be to turn "bar.pl" into a module,
then call it using:
"use Bar;"
then
pp -o foobar.exe foo.pl
My self-written module seems to automatically get added to the par file from
the current directory using this method.
I don't know if the lack of including the 'required' bar.pl is a bug or a
feature. :)
Eric