develooper Front page | perl.perl5.porters | Postings from September 2014

Re: [perl #122853] Guarantee 0-9, A-Z, a-z character classes

Thread Previous | Thread Next
From:
demerphq
Date:
September 29, 2014 10:57
Subject:
Re: [perl #122853] Guarantee 0-9, A-Z, a-z character classes
Message ID:
CANgJU+W-MSgQCxozh3fARipGT=9faBPbg0Tt23sEB7CLvXh9Lw@mail.gmail.com
On 29 September 2014 12:47, Ed Avis <eda@waniasset.com> wrote:

> OK, how about this wording:
>
> 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).  This only applies to the whole alphabet A-Z; a shorter
> range needs to be written out in full, as [abcde], to be portable.
>
>
IMO this is horrible. Instead of making this change lets just fix the
underlying issue.

Interpreting all character classes to mean the same thing everywhere is
much simpler rule than the various bodges discussed in this thread.

Yves



-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About