In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/2a2f23e4f8a50bdcdd10563dc5d933684cb70954?hp=2c133f5f540b708a80debef2851d74820aa65e94>
- Log ----------------------------------------------------------------- commit 2a2f23e4f8a50bdcdd10563dc5d933684cb70954 Author: Abigail <[email protected]> Date: Mon Sep 29 11:09:10 2014 +0200 Remarks specialness of [A-Z] and [a-z]. Make mention that [A-Z] and [a-z] always match 26 characters exactly, even if in the underlaying character set (EBCDIC) the characters aren't contiguous. See also [#122853]. ----------------------------------------------------------------------- Summary of changes: pod/perlrecharclass.pod | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pod/perlrecharclass.pod b/pod/perlrecharclass.pod index 5cd0ae7..3a38e56 100644 --- a/pod/perlrecharclass.pod +++ b/pod/perlrecharclass.pod @@ -600,6 +600,11 @@ your set of characters to be matched and its position in the class is such that it could be considered part of a range, you must escape that hyphen with a backslash. +The classes C<< [A-Z] >> and C<< [a-z] >> are special cased, in the sense +they always match exactly the 26 upper/lower case letters, regardless +of the platform (this only effects EBCDIC, which would otherwise include +some non-letters). + Examples: [a-z] # Matches a character that is a lower case ASCII letter. -- Perl5 Master Repository
