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;
3838use strict;
3939use Test::More;
4040
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+
4344use B::Deparse;
4445my $deparse = B::Deparse-> new();
4546
Original file line number Diff line number Diff line change @@ -1645,7 +1645,7 @@ CORE::evalbytes '';
16451645####
16461646# feature features when feature has been disabled by use VERSION
16471647# CONTEXT no warnings 'deprecated';
1648- use feature (sprintf(":%vd ", $^V));
1648+ use feature (sprintf(":%s ", $^V =~ /^v(5\.\d+|\d+)/g ));
16491649use 1;
16501650CORE::say $_;
16511651CORE::state $x;
@@ -1660,7 +1660,7 @@ CORE::evalbytes '';
16601660# (the above test with CONTEXT, and the output is equivalent but different)
16611661# CONTEXT use feature ':5.10'; no warnings 'deprecated';
16621662# 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 ));
16641664use 1;
16651665CORE::say $_;
16661666CORE::state $x;
You can’t perform that action at this time.
0 commit comments