Skip to content

Commit

Permalink
Scalar-List-Utils: ' valid in names by default again
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Oct 30, 2024
1 parent 75a1544 commit 5cbcc69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpan/Scalar-List-Utils/t/exotic_names.t
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sub caller3_ok {
),
);

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

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

my $legal_ident_char = join('',
"A-Z_a-z0-9",
q['],
($] < 5.037009 || $] >= 5.041_004 ? q['] : ()),
($] > 5.008 ? (
map chr, 0x100, 0x498
) : ()),
Expand Down

0 comments on commit 5cbcc69

Please sign in to comment.