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