Skip Menu |

This queue is for tickets about the PAR-Packer CPAN distribution.

Report information
The Basics
Id: 29070
Status: open
Priority: 0/
Queue: PAR-Packer

People
Owner: Nobody in particular
Requestors: MJCARMAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.976
Fixed in: (no value)



Subject: Scheduled blocks run at wrong time.
Scheduled blocks don't run at the correct times. test.pl: #!perl BEGIN { print "BEGIN\n" } CHECK { print "CHECK\n" } INIT { print "INIT\n" } END { print "END\n" } print "RUNTIME\n"; __END__ C:\> pp test.pl C:\> a.exe Expected results: BEGIN CHECK INIT RUNTIME END Actual results: BEGIN RUNTIME CHECK INIT END My configuration: Windows XP w/SP2 ActivePerl 5.8.4 build 810 PAR::Packer 0.976 Compiled with: mingw-runtime 3.13 w32api 3.10 gcc 3.4.2
From: SMUELLER [...] cpan.org
On Thu Aug 30 12:43:12 2007, MJCARMAN wrote: Show quoted text
> Scheduled blocks don't run at the correct times.
[...] This is a known bug and one I rank pretty highly. Unfortunately, I can't think of a fix. Help is welcome. Best regards, Steffen
Since Perl 5.10, we have UNITCHECK which works with PAR (and string eval and require). It's not the same as CHECK nor INIT, but I suppose in some cases, a UNITCHECK would be as good as a CHECK: Unlike CHECK, which runs after everything has been compiled, it runs after the current compilation unit (i.e. module, etc) has been compiled. Maybe this helps in some cases.