On Sun, Jan 11, 2009 at 12:20 AM, Patrick R. Michaud <[email protected]> wrote: > On Sat, Jan 10, 2009 at 09:45:06AM -0800, Carl Mäsak wrote: >> <mberends> rakudo: " a b c".split(/ <.sp>+ /).perl.say >> <p6eval> rakudo 35344: OUTPUT«["", "a", "b", "c"]» >> <TimToady> oh, and the p5 behavior of trimming trailing fields is not in p6 >> <TimToady> (for split) >> * masak submits rakudobug > > This looks totally correct to me. What output are you expecting?
I'm also confused. There's nothing in that log that has anything to do with trailing fields, only leading ones, but the output seems to be correct for both: > "a b c ".split(/<sp>+/).perl.say ["a", "b", "c", ""] vs Perl5, exhibiting the trailing field chomp: $ perl -MData::Dumper -le 'print Data::Dumper->new([[split(/\s+/, "a b c ")]])->Indent(0)->Terse(1)->Dump' ['a','b','c'] -- Mark J. Reed <[email protected]>
