having it as a module won't help me though..

I have a program (foo.pl) that can run on its own, or called from a Tk GUI 
(foogui.pl).. inside foogui.pl i need to have the require statement to call foo.pl. 

-Corey


-----Original Message-----
From: [EMAIL PROTECTED]
Sent: Feb 25, 2004 12:10 PM
To: Corey Goldberg <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: creating exe based on multiple perl files?

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




-----------------------------------
 Corey Goldberg
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
-----------------------------------

Reply via email to