develooper Front page | perl.perl5.porters | Postings from January 2015

[perl #123698] 5.20 threaded regression: boolean.pm -truth option breaks string assignment in anonymous functions

Thread Next
From:
Graham Knop via RT
Date:
January 29, 2015 15:23
Subject:
[perl #123698] 5.20 threaded regression: boolean.pm -truth option breaks string assignment in anonymous functions
Message ID:
rt-4.0.18-19448-1422544979-855.123698-15-0@perl.org
On Thu Jan 29 07:06:25 2015, dagolden@cpan.org wrote:
> On Perl 5.20.X with threads, when boolean.pm uses the '-truth' option
> on import -- which replaces the interpreter's internal true/false
> values with boolean.pm objects -- we've seen a case where a string
> literal in an anonymous function becomes undefined, but only if a
> string assignment happens in the same function.

It's not related to string assignment inside the anonymous sub, it's related to the sub being a closure.  This particular issue only seems to happen inside anonymous closures.

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=123698

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About