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

Owner: Nobody in particular
Requestors: MJCARMAN [...]

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

Subject: Scheduled blocks run at wrong time.
Download (untitled) / with headers
text/plain 469b
Scheduled blocks don't run at the correct times. #!perl BEGIN { print "BEGIN\n" } CHECK { print "CHECK\n" } INIT { print "INIT\n" } END { print "END\n" } print "RUNTIME\n"; __END__ C:\> pp 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 [...]
Download (untitled) / with headers
text/plain 231b
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
Download (untitled) / with headers
text/plain 369b
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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to