This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
only treat stash entries with .*:: as sub-stashes
[perl5.git] / t / op / stash.t
index b8e0f34..ec795a9 100644 (file)
@@ -7,7 +7,7 @@ BEGIN {
 
 BEGIN { require "./test.pl"; }
 
-plan( tests => 52 );
+plan( tests => 53 );
 
 # Used to segfault (bug #15479)
 fresh_perl_like(
@@ -341,3 +341,10 @@ is runperl(
    ),
    "ok\n",
    '[perl #128086] no crash from assigning hash to *:::::: & deleting it';
+
+is runperl(
+    prog => 'BEGIN { %: = 0; $^W=1}; print qq|ok\n|',
+    stderr => 1,
+   ),
+   "ok\n",
+   "[perl #128238] don't treat %: as a stash (needs 2 colons)"