diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-04-08 20:25:52 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-04-19 20:09:11 -0700 |
commit | 6379d4a9afb32e86e55704579c9ac81237309672 (patch) | |
tree | 885d2dca15b39a4dc91bf9b5bbd3ac8609eea01d /t | |
parent | 862504fb08ed24a37a327d325e83ceac76cf05cf (diff) | |
download | perl-6379d4a9afb32e86e55704579c9ac81237309672.tar.gz |
[perl #112316] Make strict vars respect assignment from null pkg
Under threads, strict vars was not respecting glob assignment from a
package with a null in its name if the name of the package assigned to
was equal to the prefix of the current package up to the null.
Diffstat (limited to 't')
-rw-r--r-- | t/lib/strict/vars | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/lib/strict/vars b/t/lib/strict/vars index 28aab48e5c..568d991978 100644 --- a/t/lib/strict/vars +++ b/t/lib/strict/vars @@ -545,3 +545,12 @@ package foo; use strict; eval 'package Foo; @bar = 1' or die; EXPECT +######## +# [perl #112316] strict vars getting confused by nulls +# Assigning from within a package whose name contains a null +BEGIN { *Foo:: = *{"foo\0bar::"} } +package Foo; +*foo::bar = []; +use strict; +eval 'package foo; @bar = 1' or die; +EXPECT |