Alan Stewart wrote:
On 4 Jul 2004 at 17:04, Dean Arnold wrote:
(WinXP, AS 5.8.3, PAR 0.85, Tk 804.027)
Better still heres a simple example:
#usr/local/bin/perl
open(INF, "pptest.txt") || die $!;
print
while (<INF>);
and pptest.txt is a simple text file in the local directory, here's
my pp command
C:\Perl\pp>pp -v 3 -o ..\pptest.exe -a pptest.txt pptest.pl >pp.log
C:\Perl\pp>cd ..
C:\Perl>pptest
No such file or directory at script/pptest.pl line 1.
When I run, it can't find the file. So what file path should I use in
my open() statement ?
Same problem. pptest.txt is inside the PAR, but that doesn't make an ordinary open() do
something different. Use the PAR::read_file() instead.
Alan Stewart
Hmmm, missed that in the docs. And I was used to perl2exe, which handles
such files a bit better. In any event I've avoided the whole nasty
issue by embedding the icons in the perl source.
Now another little annoyance:
I'm trying to use a Windows script file to completely build
my release package. However, when pp exits, it seems to exit
the entire batch file. Not certain how/why thats happening,
tried to echo the ERRORLEVEL after pp, but apparently pp
kills the batch before it gets to hte echo. I've managed to work around
it by wrapping everything in perl using system calls,
but it would be nice if pp exitted a bit more gracefully.
Thanks,
Dean Arnold
Presicient Corp.