Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: acdbee4511e9442a403e6724cae3cebcb52e8d8e
https://github.com/Perl/perl5/commit/acdbee4511e9442a403e6724cae3cebcb52e8d8e
Author: Richard Leach <[email protected]>
Date: 2026-07-27 (Mon, 27 Jul 2026)
Changed paths:
M lib/B/Deparse.pm
M lib/B/Deparse.t
Log Message:
-----------
B::Deparse: better output of anonhashes following map, grep, sort
When a `map`, `grep`, or `sort` keyword is followed by an anonymous hash
constructor, disambiguated from a block declaration by a plus character,
`B::Deparse` struggled to always include the plus in its output, meaning
that deparsed Perl code would behave differently to the original.
For example:
map +{ $_ => 1}. 1
would deparse to:
map { $_ => 1}, 1
It now deparses correctly - for at least some cases of the same form.
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications