From: | "Alan Stewart" <astewart1 [...] cox.net> |
To: | bug-par [...] rt.cpan.org |
Date: | Wed, 06 Aug 2003 18:08:13 -0700 |
Subject: | PAR::read_file problem in PAR-0.73 |
PAR-0.73 on NT4.0/sp6
If I understand the docs, PAR::read_file will locate a file in any loaded PAR,
which would include PARs given as "use PAR;" args and the PAR containing the
compiled program in a.exe. 'a.exe' is in the %LibCache. Here is a small test
of the problem.
First I 'type'd the source, then execute successfully from perl.exe reading
from test.par. Then I can generate several different odd errors running the
a.exe.
D:\ACTIVE~1\Par>type test.pl
use PAR 'test.par';
my $stuff = PAR::read_file('script/test.pl');
print $stuff;
D:\ACTIVE~1\Par>pp -S test.pl
D:\ACTIVE~1\Par>perl test.pl
use PAR 'test.par';
my $stuff = PAR::read_file('script/test.pl');
print $stuff;
D:\ACTIVE~1\Par>a.exe
format error: file is too short
format error: file is too short
format error: file is too short
format error: file is too short
format error: file is too short
format error: file is too short
format error: file is too short
format error: file is too short
format error: file is too short
format error: file is too short
format error: file is too short
format error: file is too short
^C
D:\ACTIVE~1\Par>ren test.par other.par
D:\ACTIVE~1\Par>a.exe
IO error: Can't open IO::File=GLOB(0x13b6528) : No such file or
directory
D:\ACTIVE~1\Par>
##########################################################
## after editting "use PAR 'test.par';" to just "use PAR;"
##########################################################
D:\ACTIVE~1\Par>pp -S test.pl
D:\ACTIVE~1\Par>a.exe
error: inflate error -3
D:\ACTIVE~1\Par>