This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlreapi.pod: Update RXf_SPLIT section
authorFather Chrysostomos <sprout@cpan.org>
Fri, 12 Oct 2012 06:26:21 +0000 (23:26 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 12 Oct 2012 06:26:21 +0000 (23:26 -0700)
pod/perlreapi.pod

index 6d34185..edcf9bb 100644 (file)
@@ -162,6 +162,10 @@ Additional flags:
 
 =item RXf_SPLIT
 
 
 =item RXf_SPLIT
 
+This flag was removed in perl 5.18.0.  C<split ' '> is now special-cased
+solely in the parser.  RXf_SPLIT is still #defined, so you can test for it.
+This is how it used to work:
+
 If C<split> is invoked as C<split ' '> or with no arguments (which
 really means C<split(' ', $_)>, see L<split|perlfunc/split>), Perl will
 set this flag. The regex engine can then check for it and set the
 If C<split> is invoked as C<split ' '> or with no arguments (which
 really means C<split(' ', $_)>, see L<split|perlfunc/split>), Perl will
 set this flag. The regex engine can then check for it and set the