develooper Front page | perl.perl5.porters | Postings from October 2009

Re: Rule 1 has been invoked [Re: What should \s \w \d match in 5.12?]

Thread Previous | Thread Next
From:
demerphq
Date:
October 29, 2009 06:21
Subject:
Re: Rule 1 has been invoked [Re: What should \s \w \d match in 5.12?]
Message ID:
9b18b3110910290621g60dec8d5k3a919b56760c3477@mail.gmail.com
2009/10/29 Paul LeoNerd Evans <leonerd@leonerd.org.uk>:
> On Wed, 28 Oct 2009 10:09:50 -0400
> Ricardo Signes <perl.p5p@rjbs.manxome.org> wrote:
>
>> * demerphq <demerphq@gmail.com> [2009-10-28T09:51:45]
>> > >
>> > > As for \d, though, I am horrified to think how much bad behavior could be
>> > > introduced if \d started to match TITLE CASE KLINGON NUMERAL CHORGH
>> > >
>> > > I think it is likely that I would not upgrade to a perl5 that introduced
>> > > such behavior.  "Review every regex that uses \d" is not an acceptable
>> > > burden.
>> >
>> > What you just described is the present situation. And many people have
>> > this bug and have done exactly what you said.
>>
>> I stand both corrected and astonished.
>
> If you're going to make \d match non-ASCII then please make this work
>
>  m/^\d+$/ and $count = $_+0;

It already matches non-ascii.

And no it doesnt work. And frankly the idea of making it work doesnt
make a lot of sense to me.

You really want "\x{0E50}\x{0ED0}" to be another way to write "11"?

They arent even in the same script.

cheers,
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