In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/2171640d622fec8c4600653b1cf9907d24dfc169?hp=2d8edfd19d3ae7a665ce2648c86d00540f61f564>
- Log ----------------------------------------------------------------- commit 2171640d622fec8c4600653b1cf9907d24dfc169 Author: Karl Williamson <[email protected]> Date: Wed Feb 27 18:27:23 2013 -0700 \N is no longer experimental ----------------------------------------------------------------------- Summary of changes: pod/perldelta.pod | 4 ++-- pod/perlexperiment.pod | 17 +++++++---------- pod/perlre.pod | 3 +-- pod/perlrebackslash.pod | 2 +- pod/perlrecharclass.pod | 4 ++-- pod/perlreref.pod | 2 +- 6 files changed, 14 insertions(+), 18 deletions(-) diff --git a/pod/perldelta.pod b/pod/perldelta.pod index ba09308..aa6474e 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -129,13 +129,13 @@ XXX Changes which significantly change existing files in F<pod/> go here. However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics> section. -=head3 L<XXX> +=head3 L<perlrebackslash/\N> =over 4 =item * -XXX Description of the change here +This feature is no longer experimental. =back diff --git a/pod/perlexperiment.pod b/pod/perlexperiment.pod index ad88c06..0f1a907 100644 --- a/pod/perlexperiment.pod +++ b/pod/perlexperiment.pod @@ -232,15 +232,6 @@ See also: L<perlre/"Special Backtracking Control Verbs"> =item Code expressions, conditional expressions, and independent expressions in regexes -=item The C<\N> regex character class - -The C<\N> character class, not to be confused with the named character -sequence C<\N{NAME}>, denotes any non-newline character in a regular -expression. - -Introduced in: Perl 5.12 - -See also: =item gv_try_downgrade @@ -273,7 +264,13 @@ They are also awarded +5 Stability and +3 Charisma. =over 8 -=item (none yet identified) +=item The C<\N> regex character class + +The C<\N> character class, not to be confused with the named character +sequence C<\N{NAME}>, denotes any non-newline character in a regular +expression. + +Introduced in: Perl 5.12 =back diff --git a/pod/perlre.pod b/pod/perlre.pod index 1609819..60173d6 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -642,8 +642,7 @@ X<\g> X<\k> X<\K> X<backreference> \g{name} [5] Named backreference \k<name> [5] Named backreference \K [6] Keep the stuff left of the \K, don't include it in $& - \N [7] Any character but \n (experimental). Not affected by - /s modifier + \N [7] Any character but \n. Not affected by /s modifier \v [3] Vertical whitespace \V [3] Not vertical whitespace \h [3] Horizontal whitespace diff --git a/pod/perlrebackslash.pod b/pod/perlrebackslash.pod index a1e158a..c943b85 100644 --- a/pod/perlrebackslash.pod +++ b/pod/perlrebackslash.pod @@ -591,7 +591,7 @@ Mnemonic: I<K>eep. =item \N -This is an experimental feature new to perl 5.12.0. It matches any character +This feature, available starting in v5.12, matches any character that is B<not> a newline. It is a short-hand for writing C<[^\n]>, and is identical to the C<.> metasymbol, except under the C</s> flag, which changes the meaning of C<.>, but not C<\N>. diff --git a/pod/perlrecharclass.pod b/pod/perlrecharclass.pod index da05ab1..681cd06 100644 --- a/pod/perlrecharclass.pod +++ b/pod/perlrecharclass.pod @@ -29,7 +29,7 @@ the most well-known character class. By default, a dot matches any character, except for the newline. That default can be changed to add matching the newline by using the I<single line> modifier: either for the entire regular expression with the C</s> modifier, or -locally with C<(?s)>. (The experimental C<\N> backslash sequence, described +locally with C<(?s)>. (The C<\N> backslash sequence, described below, matches any character except newline without regard to the I<single line> modifier.) @@ -74,7 +74,7 @@ character classes, see L<perlrebackslash>.) =head3 \N -C<\N> is new in 5.12, and is experimental. It, like the dot, matches any +C<\N>, available starting in v5.12, like the dot, matches any character that is not a newline. The difference is that C<\N> is not influenced by the I<single line> regular expression modifier (see L</The dot> above). Note that the form C<\N{...}> may mean something completely different. When the diff --git a/pod/perlreref.pod b/pod/perlreref.pod index 83c1316..eb19e6c 100644 --- a/pod/perlreref.pod +++ b/pod/perlreref.pod @@ -136,7 +136,7 @@ and L<perlunicode> for details. \S A non-whitespace character \h An horizontal whitespace \H A non horizontal whitespace - \N A non newline (when not followed by '{NAME}'; experimental; + \N A non newline (when not followed by '{NAME}';; not valid in a character class; equivalent to [^\n]; it's like '.' without /s modifier) \v A vertical whitespace -- Perl5 Master Repository
