File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,9 @@ use warnings;
38
38
use strict;
39
39
use Test::More;
40
40
41
- use feature (sprintf (" :%vd " , $^V)); # to avoid relying on the feature
42
- # logic to add CORE::
41
+ # to avoid relying on the feature logic to add CORE::
42
+ use feature (sprintf (" :%s " , $^V =~ / ^v(5\.\d +|\d +)/g ));
43
+
43
44
use B::Deparse;
44
45
my $deparse = B::Deparse-> new();
45
46
Original file line number Diff line number Diff line change @@ -1645,7 +1645,7 @@ CORE::evalbytes '';
1645
1645
####
1646
1646
# feature features when feature has been disabled by use VERSION
1647
1647
# CONTEXT no warnings 'deprecated';
1648
- use feature (sprintf(":%vd ", $^V));
1648
+ use feature (sprintf(":%s ", $^V =~ /^v(5\.\d+|\d+)/g ));
1649
1649
use 1;
1650
1650
CORE::say $_;
1651
1651
CORE::state $x;
@@ -1660,7 +1660,7 @@ CORE::evalbytes '';
1660
1660
# (the above test with CONTEXT, and the output is equivalent but different)
1661
1661
# CONTEXT use feature ':5.10'; no warnings 'deprecated';
1662
1662
# feature features when feature has been disabled by use VERSION
1663
- use feature (sprintf(":%vd ", $^V));
1663
+ use feature (sprintf(":%s ", $^V =~ /^v(5\.\d+|\d+)/g ));
1664
1664
use 1;
1665
1665
CORE::say $_;
1666
1666
CORE::state $x;
You can’t perform that action at this time.
0 commit comments