This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #112316] Make strict vars respect null-to-null assignment
authorFather Chrysostomos <sprout@cpan.org>
Sat, 21 Apr 2012 05:50:11 +0000 (22:50 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 21 Apr 2012 05:50:11 +0000 (22:50 -0700)
commitf374360c52233c7d72ba874294a00ee18d910d08
tree873815dc787610a29c7e028fcb6e68304efe474d
parentb14845b4fc65ba895fe9fe5f9cc346c5c235c28b
[perl #112316] Make strict vars respect null-to-null assignment

This is a follow-up to commits 6379d4a9a and 862504fb08.

As Karl Williamson (thank you!) pointed out, my changes were not suf-
ficient, because strEQ was still being used, which stops at the first
null, treating "foo\0bar" and "foo\0foo" as equivalent.

Under threads, strict vars was not respecting glob assignment from a
package with a null in its name to another also with a null in its
name, if the two package names shared a common prefix up to the null.
t/lib/strict/vars
util.c