develooper Front page | perl.perl5.porters | Postings from February 2013

Re: [perl #116086] split "\x20" doesn't work as documented

Thread Previous | Thread Next
From:
demerphq
Date:
February 17, 2013 12:43
Subject:
Re: [perl #116086] split "\x20" doesn't work as documented
Message ID:
CANgJU+WYT2rc-tc1DA=vKM6btRiM=RdWoWJ7gzvgvz2+Hy76-w@mail.gmail.com
On 17 February 2013 13:14, Dr.Ruud <rvtol+usenet@isolution.nl> wrote:
> On 2013-02-17 02:15, demerphq wrote:
>
>> We changed which level of the perl parser handles escapes intended for
>> the regex engine.
>>
>> Previous to this the \x20 would be resolved to a space, and as far as
>> the regex engine was concerned the pattern would be " ".
>>
>> After this change the \x20 would be delivered to the regex engine
>> verbatim and the \x20 form would not be recognized by the heuristic
>> that handles the " " case.
>>
>> This change was very desirable for many reasons, and as it doesnt
>> actually contradict the docs, unless Ricardo says otherwise I consider
>> this Not A Bug.
>
>
> See some split() cases below. So, #4 should behave as #7..10.
>
> So, the PATTERN "\x20" should be compiled as /\x20/, not as " ".

So you dont agree that the original ticket is a bug?

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