X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/150d06de2e4cba0da08555d83988a89acd541d70..3f10c77acfa5c361603f55abdd04dcae3fdc2a4a:/pod/perl595delta.pod?ds=sidebyside diff --git a/pod/perl595delta.pod b/pod/perl595delta.pod index c3d59ec..47710a8 100644 --- a/pod/perl595delta.pod +++ b/pod/perl595delta.pod @@ -14,7 +14,7 @@ between 5.8.0 and 5.9.4. =head2 Tainting and printf When perl is run under taint mode, C and C will now -reject any tainted format argument. (Rafael Garcia-SUarez) +reject any tainted format argument. (Rafael Garcia-Suarez) =head2 undef and signal handlers @@ -107,24 +107,40 @@ would expect. This is considered a feature. :-) (Yves Orton) =item Possessive Quantifiers -Perl now supports the "possessive quantifier" syntax of the "atomic match" +Perl now supports the "possessive quantifier" syntax of the "atomic match" pattern. Basically a possessive quantifier matches as much as it can and never -gives any back. Thus it can be used to control backtracking. The syntax is +gives any back. Thus it can be used to control backtracking. The syntax is similar to non-greedy matching, except instead of using a '?' as the modifier the '+' is used. Thus C, C<*+>, C<++>, C<{min,max}+> are now legal quantifiers. (Yves Orton) =item Backtracking control verbs -The regex engine now supports a number of special purpose backtrack +The regex engine now supports a number of special-purpose backtrack control verbs: (*THEN), (*PRUNE), (*MARK), (*SKIP), (*COMMIT), (*FAIL) and (*ACCEPT). See L for their descriptions. (Yves Orton) =item Relative backreferences -A new syntax C<\R1> ("1" being any positive decimal integer) allows -relative backreferencing. This should make it easier to embed patterns -that contain backreferences. (Yves Orton) +A new syntax C<\g{N}> or C<\gN> where "N" is a decimal integer allows a +safer form of back-reference notation as well as allowing relative +backreferences. This should make it easier to generate and embed patterns +that contain backreferences. See L. (Yves Orton) + +=item Regexp::Keep internalized + +The functionality of Jeff Pinyan's module Regexp::Keep has been added to +the core. You can now use in regular expressions the special escape C<\K> +as a way to do something like floating length positive lookbehind. It is +also useful in substitutions like: + + s/(foo)bar/$1/g + +that can now be converted to + + s/foo\Kbar//g + +which is much more efficient. =back @@ -209,6 +225,11 @@ anymore, and will require parentheses to be added after the function name: require Carp; Carp::confess "argh"; +=item C + +C can now report the caller's file and line number. +(David Feldman) + =back =head1 Utility Changes @@ -225,6 +246,12 @@ Efforts have been made to make perl and the core XS modules compilable with various C++ compilers (although the situation is not perfect with some of the compilers on some of the platforms tested.) +=head2 Static build on Win32 + +It's now possible to build a C that doesn't depend +on C on Win32. See the Win32 makefiles for details. +(Steve Hay) + =head2 Ports Perl has been reported to work on MidnightBSD.