Here is the new patch for split on a regex. Testing it with:
say "theXbiggestXbangXforXtheXbuck".split(/X/).perl;
say "ab1cd12ef123gh".split(/\d+/).perl;
say "charsoup".split(/\<\/?.*?\>/).perl;
We get the following output:
["the", "biggest", "bang", "for", "the", "buck"]
["ab", "cd", "ef", "gh"
Chris Davaz wrote:
> hmm I see I'll work it out ;-) Thanks
I just found out that the segfault is not introduced by your patch, one
less worry for you ;-)
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
hmm I see I'll work it out ;-) Thanks
On Thu, Sep 18, 2008 at 3:33 PM, Moritz Lenz <[EMAIL PROTECTED]>wrote:
>
>> Chris Davaz wrote:
>> > Ok, here it is without the change to "split on a string", and the test
>> > passes.
>>
>> Yes, but on my machine now t/spec/S04-statements/gather.t produces a
>
Chris Davaz wrote:
> Ok, here it is without the change to "split on a string", and the test
> passes.
Yes, but on my machine now t/spec/S04-statements/gather.t produces a
segmentation fault. I'll have to investigate if that is related to your
patch or not.
Also split behaves a bit strangely here:
Chris Davaz (via RT) wrote:
> # New Ticket Created by "Chris Davaz"
> # Please include the string: [perl #58970]
> # in the subject line of all future correspondence about this issue.
> # http://rt.perl.org/rt3/Ticket/Display.html?id=58970 >
>
>
> I say "initial" because it didn't pass one of