I used PAR's pp program to build an .exe, and this .exe (unlike the ones
produced by Perl2Exe and PerlApp) worked great on my development system!
But then, I copied this .exe to another system (one without Perl) and ran
it. It died, with:
E:\>foo.exe
: Win32::Process::Create() at IPC/Run.pm line 2097
: Win32::Process::Create() at IPC/Run.pm line 2216
: Win32::Process::Create() at IPC/Run.pm line 2216
A Perl guru in another place had told me that this indicates
IPC::Run-spawned processes could not locate Perl at run time; he directed me
to add:
# BEGIN { $^X = 'C:\Perl\bin\perl.exe' }
to my program. This worked, as long as there was a perl.exe file at that
location. Since my 'other' system does not have any Perl installed, that
file didn't exist.
I guess I had ASSumed that PAR/pp provided Perl. Not so? If not, can I just
bundle perl.exe into my .exe file, and have it work?
Thanks!
tl
Terry Lemons
CLARiiON Applications Integration Engineering
EMC²
where information lives
4400 Computer Drive, MS D239
Westboro MA 01580
Phone: 508 898 7312
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>