Skip to content

Commit 8e34742

Browse files
committed
Scalar-List-Utils: ' valid in names by default again
1 parent 79164e3 commit 8e34742

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpan/Scalar-List-Utils/t/exotic_names.t

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sub caller3_ok {
4545
),
4646
);
4747

48-
$expected =~ s/'/::/g;
48+
$expected =~ s/'/::/g if $] < 5.037009 || $] >= 5.041_004;
4949

5050
# this is apparently how things worked before 5.16
5151
utf8::encode($expected) if $] < 5.016 and $ord > 255;
@@ -72,7 +72,7 @@ my @ordinal = (
7272
($] >= 5.014 ? ( 0 ) : ()),
7373
1 .. 38,
7474
# single quote ' separators are deprecated in 5.37.9
75-
($] < 5.037009 ? ( 39 ) : ()),
75+
($] < 5.037009 || $] >= 5.041_004 ? ( 39 ) : ()),
7676
40 .. 255,
7777
# Unicode in 5.6 is not sane (crashes etc)
7878
($] >= 5.008 ? (
@@ -85,7 +85,7 @@ my @ordinal = (
8585

8686
my $legal_ident_char = join('',
8787
"A-Z_a-z0-9",
88-
q['],
88+
($] < 5.037009 || $] >= 5.041_004 ? q['] : ()),
8989
($] > 5.008 ? (
9090
map chr, 0x100, 0x498
9191
) : ()),

0 commit comments

Comments
 (0)