Skip Menu |
 

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: 0/
Queue: Attribute-Handlers

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

Bug Information
Severity: Normal
Broken in: 0.78
Fixed in: (no value)



Subject: END { ... } block destroys exit value.
Download (untitled) / with headers
text/plain 438b
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 is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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