From: Karl Williamson Date: Thu, 25 Feb 2010 23:28:50 +0000 (-0700) Subject: Add deprecation of non-name \N{foo} to delta pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8c66a230eb1572c052bfd47078962324acb8c197;p=p5sagit%2Fp5-mst-13.2.git Add deprecation of non-name \N{foo} to delta pod --- diff --git a/pod/perl5120delta.pod b/pod/perl5120delta.pod index 04d3b01..a62c4be 100644 --- a/pod/perl5120delta.pod +++ b/pod/perl5120delta.pod @@ -707,6 +707,18 @@ Using C to jump from an outer scope into an inner scope is now deprecated. This rare use case was causing problems in the implementation of scopes. +=item Custom character names in \N{name} should look like names + +In C<\N{I}>, I can be just about anything. The standard Unicode +names have a very limited domain, but a custom name translator could create +names that are, for example, made up entirely of punctuation symbols. It is +now deprecated to make names that don't begin with an alphabetic character, and +aren't alphanumeric or contain other than a very few other characters, +namely spaces, dashes, parentheses and colons. Because of the added meaning of +C<\N> (See L experimental regex escape>), names that look like curly +brace -enclosed quantifiers won't work. For example, C<\N{3,4}> now means to +match 3 to 4 non-newlines; before a custom name C<3,4> could have been created. + =item Deprecated Modules The following modules will be removed from the core distribution in a future