also skip tests on 5.18 to avoid errant test failures
[p5sagit/Sub-Name.git] / t / lexical.t
index 97a3263..15ebfd6 100644 (file)
@@ -8,6 +8,12 @@ BEGIN {
   }
 }
 
+BEGIN {
+  if ("$]" < 5.020) {
+    plan 'skip_all' => 'lexical subs unreliable on this perl';
+  }
+}
+
 use feature 'lexical_subs';
 no warnings 'experimental::lexical_subs';