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:55
Subject:
Re: [perl #122853] Guarantee 0-9, A-Z, a-z character classes
Message ID:
CANgJU+VyMvuniU+okji89+0JEbV9eSttV0qvzhZd82jA6AzJeQ@mail.gmail.com
On 29 September 2014 12:43, Abigail <abigail@abigail.be> wrote:

> On Mon, Sep 29, 2014 at 10:13:21AM +0000, Ed Avis wrote:
> > Abigail <abigail <at> abigail.be> writes:
> >
> > >I've added a remark in perlrecharclass.pod. See commit
> > >2a2f23e4f8a50bdcdd10563dc5d933684cb70954
> >
> > Thanks.  That adds
> >
> > +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).
> >
> > I would also add
> >
> >     Digit sequences are and will be consecutive on all platforms Perl
> >     supports, so C<< [0-3] >> always matches the digits 0123, and so on.
> >
> > just to cover all the bases.
>
>
> I disagree.
>
> Because that gives the expectation that C<< [D-N] >> will do that as well,
> but it does not.
>

But it probably should.

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