This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #94490] const fold should not trigger special split " "
authorFather Chrysostomos <sprout@cpan.org>
Sun, 23 Sep 2012 00:54:12 +0000 (17:54 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 23 Sep 2012 01:50:50 +0000 (18:50 -0700)
commit5255171e6cd0accee6f76ea2980e32b3b5b8e171
treef198188a949f401983d4493ed514365d2c09213c
parentd8e299374017857bcc055c31b6d4a808fb862100
[perl #94490] const fold should not trigger special split " "

The easiest way to fix this was to move the special handling out of
the regexp engine.  Now a flag is set on the split op itself for
this case.  A real regexp is still created, as that is the most
convenient way to propagate locale settings, and it prevents the
need to rework pp_split to handle a null regexp.

This also means that custom regexp plugins no longer need to handle
split specially (which they all do currently).
dist/B-Deparse/Deparse.pm
op.c
op.h
pp.c
regcomp.c
regen/regcomp.pl
regexp.h
t/op/split.t