Skip Menu |

This queue is for tickets about the Try-Tiny CPAN distribution.

Report information
The Basics
Id: 120512
Status: new
Priority: 0/
Queue: Try-Tiny

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

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Evil sub called from finally { } block can modify $@ for Perl >= 5.013002
Test code: sub evil_sub { $@ = "another magic"; } { local $@ = "magic"; local $_ = "other magic"; try { 1; } catch { fail("shouldn't happen"); } finally { evil_sub; }; is( $@, "magic", '$@ untouched' ); is( $_, "other magic", '$_ untouched' ); } This code passes only when UNSTABLE_DOLLARAT is true which is for Perl < 5.013002. For all new Perl versions this code fails.