]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/lib/Scope/Upper/TestGenerator.pm
Version requirements overhaul
[perl/modules/Scope-Upper.git] / t / lib / Scope / Upper / TestGenerator.pm
index 99764d5618f3fad75c3198f9206d31d0c065b36c..9ef65b8849474977047cd193d473d7755520c9ac 100644 (file)
@@ -26,8 +26,8 @@ my @blocks = (
 );
 
 sub import {
- if ($] >= 5.010001) {
-  push @blocks, [ 'given (1) { my $_;', '}' ];
+ if ("$]" >= 5.010_001) {
+  push @blocks, [ 'given (1) {', '}' ];
   require feature;
   feature->import('switch');
  }