Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: a0b9367395c983672f97799084bd8924e3b41f49 https://github.com/Perl/perl5/commit/a0b9367395c983672f97799084bd8924e3b41f49 Author: Tony Cook <t...@develop-help.com> Date: 2025-03-11 (Tue, 11 Mar 2025)
Changed paths: M mg.c M t/lib/warnings/mg Log Message: ----------- Prevent misleading undefined value warnings for defelem magic This could warn within a function was called with a parameter that was a hash element based on an undef key that didn't exist when that parameter was referenced. This also warns more usefully at the point of call. Commit: 06845691603b4ce97485f3d0cb1bdde5e1e3161e https://github.com/Perl/perl5/commit/06845691603b4ce97485f3d0cb1bdde5e1e3161e Author: Tony Cook <t...@develop-help.com> Date: 2025-03-11 (Tue, 11 Mar 2025) Changed paths: M mg.c M t/lib/warnings/mg Log Message: ----------- Preserve behaviour of allowing an undefined key for tied hash lookups The previous change prevented the warning, but forced the hash key for defelem to the empty string if the original key was undefined. This wasn't a problem if the hash was already tied when the function was called (and the PVLV created), since the resulting PVLV used packelem magic instead of defelem. But if the hash was tied after the PVLV was created references through the PVLV would be working on $hash{""} instead of $hash{+undef}, breaking this possibly used feature. One issue is whether we want to allow undef keys for tied hash, if we do we should probably make them warn less. Fixes #22423 Commit: fe38c5ac7b54225edf3762801c53ebc5cefec8cf https://github.com/Perl/perl5/commit/fe38c5ac7b54225edf3762801c53ebc5cefec8cf Author: Tony Cook <t...@develop-help.com> Date: 2025-03-11 (Tue, 11 Mar 2025) Changed paths: M pod/perldelta.pod Log Message: ----------- perldelta for suppressing defelem undefined hash key Compare: https://github.com/Perl/perl5/compare/09d9a88be601...fe38c5ac7b54 To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications