Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 7aab773a19c703d6ab3ff858455bc3a9ead7639b https://github.com/Perl/perl5/commit/7aab773a19c703d6ab3ff858455bc3a9ead7639b Author: Lukas Mai <lukasmai....@gmail.com> Date: 2023-09-15 (Fri, 15 Sep 2023)
Changed paths: M pp.c M t/op/hashwarn.t M t/op/ref.t Log Message: ----------- fix handling of single-value anonhash { $foo } An early exit in pp_anonhash (added in 7a607afee585e60ce329b) inadvertently made { $foo } behave like {}; i.e. a hashref constructor containing a single value ended up returning a reference to an empty hash (and did not emit an "Odd number of elements in anonymous hash" warning). Fixes #21478.