File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ sub caller3_ok {
45
45
),
46
46
);
47
47
48
- $expected =~ s / '/ ::/ g ;
48
+ $expected =~ s / '/ ::/ g if $] < 5.037009 || $] >= 5.041_004 ;
49
49
50
50
# this is apparently how things worked before 5.16
51
51
utf8::encode($expected ) if $] < 5.016 and $ord > 255;
@@ -72,7 +72,7 @@ my @ordinal = (
72
72
($] >= 5.014 ? ( 0 ) : ()),
73
73
1 .. 38,
74
74
# single quote ' separators are deprecated in 5.37.9
75
- ($] < 5.037009 ? ( 39 ) : ()),
75
+ ($] < 5.037009 || $] >= 5.041_004 ? ( 39 ) : ()),
76
76
40 .. 255,
77
77
# Unicode in 5.6 is not sane (crashes etc)
78
78
($] >= 5.008 ? (
@@ -85,7 +85,7 @@ my @ordinal = (
85
85
86
86
my $legal_ident_char = join (' ' ,
87
87
" A-Z_a-z0-9" ,
88
- q[ '] ,
88
+ ( $] < 5.037009 || $] >= 5.041_004 ? q[ '] : ()) ,
89
89
($] > 5.008 ? (
90
90
map chr , 0x100, 0x498
91
91
) : ()),
You can’t perform that action at this time.
0 commit comments