Subject: | builtin 'split' broken |
When using Regexp::Grammars the builtin 'split' ceases functioning
correctly. I tested this with version 1.013 and 1.016 on Linux and 1.016
on Windows.
Perl version (Platform) on which error was noticed:
Strawberry Perl 5.12.3 on Windows 7 (perl 5, version 12, subversion 3
(v5.12.3) built for MSWin32-x86-multi-thread)
Perl 5.14.1 on Red Hat (perl 5, version 14, subversion 1 (v5.14.1) built
for x86_64-linux)
Subject: | regexp_grammars_breaks_split.pl |
use strict;
use warnings;
my @test0 = split /A/, "BABAC";
print join("\t", @test0) . "\n"; # Works
use Regexp::Grammars;
my @test1 = split /A/, "BABAC";
print join("\t", @test1) . "\n"; # Does not work
no Regexp::Grammars;
my @test2 = split /A/, "BABAC";
print join("\t", @test2) . "\n"; # Works