Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Attribute-Handlers CPAN distribution.

Report information
The Basics
Id:
16237
Status:
stalled
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
cpan@spidererrol.co.uk(no email address set)
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
0.78
Fixed in:
(no value)



Subject: END { ... } block destroys exit value.
Error in Attribute-Handlers-0.78, file Attribute/Handlers.pm, line 210. The END block: END { $global_phase++; _apply_handler_AH_($_,'END') foreach @declarations } does not preserve $?, and results in an exit value of 255 whatever the user specified in the exit() call. The fix is to change the block to read something like: END { my $exitval = $?; $global_phase++; _apply_handler_AH_($_,'END') foreach @declarations; $? = $exitval }
I cannot reproduce this bug. Have you an example script that would help?


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.