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

index 68c23ad..ebe81b1 100644 (file)
@@ -223,6 +223,12 @@ Perl's engine sets this flag on empty patterns, this optimization
 makes C<split //> much faster than it would otherwise be. It's even
 faster than C<unpack>.
 
+=item RXf_MODIFIES_VARS
+
+Added in perl 5.18.0, this flag indicates that a regular expression might
+assign to non-magical variables (such as $REGMARK and $REGERROR) during
+matching.  C<s///> will skip certain optimisations when this is set.
+
 =back
 
 =head2 exec