We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee6fa1 commit 648841eCopy full SHA for 648841e
t/op/split.t
@@ -10,6 +10,7 @@ BEGIN {
10
plan tests => 219;
11
12
$FS = ':';
13
+our $IS_ASCII;
14
15
$_ = 'a:b:c';
16
@@ -728,8 +729,12 @@ SKIP: {
728
729
730
# gh18032: check that `split " "` does not get converted to `split ""`
731
SKIP: {
- my @skipwhite= ('split " "', 'split "\x20"', 'split "\N{SPACE}"',
732
- 'split "$e$sp$e"', 'split');
+ my @skipwhite = ( 'split " "',
733
+ ($::IS_ASCII) ? 'split "\x20"' : 'split "\x40"',
734
+ 'split "\N{SPACE}"',
735
+ 'split "$e$sp$e"',
736
+ 'split'
737
+ );
738
my @noskipwhite= (
739
'split / /', 'split m/ /', 'split qr/ /',
740
'split /$e$sp$e/', 'split m/$e$sp$e/', 'split qr/$e$sp$e/'
0 commit comments