This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Store internal state of state vars separately
[perl5.git] / t / op / lvref.t
index dbd3171..7bb6e4e 100644 (file)
@@ -506,6 +506,7 @@ on;
   }->();
   is \$x, \$y, 'lexical alias affects outer sub where vars are declared';
 }
+off;
 
 { # PADSTALE has a double meaning
   use feature 'lexical_subs', 'signatures';
@@ -525,7 +526,6 @@ on;
   is s(3), 1, 'padstale alias should not reset state'
 }
 
-off;
 SKIP: {
     skip_without_dynamic_extension('List/Util');
     require Scalar::Util;