In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/25941dca088b9d6133e0e5246e9741fd4d5eb59b?hp=0a9cc54c57f019e71d784ddfbc4eba91efb22770>

- Log -----------------------------------------------------------------
commit 25941dca088b9d6133e0e5246e9741fd4d5eb59b
Author: Matthew Horsfall <[email protected]>
Date:   Wed Dec 31 11:05:57 2014 -0500

    Perldelta for /n regexp flag. Also ?: to C<?:> in perlre.pod.
-----------------------------------------------------------------------

Summary of changes:
 pod/perldelta.pod | 11 +++++++++++
 pod/perlre.pod    |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 6a830b9..be051e1 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -42,6 +42,17 @@ warnings to the core going forward through other top-level 
warning
 categories. See L<the warnings documentation|warnings/Top-level
 warning categories & associated confusion> for details.
 
+=head2 Non-Capturing Regular Expression Flag
+
+Regular expressions now support a C</n> flag that disables capturing
+and filling in C<$1>, C<$2>, etc... inside of groups:
+
+  "hello" =~ /(hi|hello)/n; # $1 is not set
+
+This is equivalent to putting C<?:> at the beginning of every capturing group.
+
+See L<perlre/"n"> for more information.
+
 =head1 Security
 
 XXX Any security-related notices go here.  In particular, any security
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 8ed5eca..dfd47cd 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -112,7 +112,7 @@ new in 5.22, will stop C<$1>, C<$2>, etc... from being 
filled in.
   "hello" =~ /(hi|hello)/;   # $1 is "hello"
   "hello" =~ /(hi|hello)/n;  # $1 is undef
 
-This is equivalent to putting ?: at the beginning of every capturing group:
+This is equivalent to putting C<?:> at the beginning of every capturing group:
 
   "hello" =~ /(?:hi|hello)/; # $1 is undef
 

--
Perl5 Master Repository

Reply via email to