# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #112868]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112868 >


<sisar> n: my $a = 'abc'; my @rray = $a.split(''); say @rray[0]; say @rray[1];
<p6eval> niecza v17-4-ge5b869e: OUTPUT«␤a␤»
<sisar> r: my $a = 'abc'; my @rray = $a.split(''); say @rray[0]; say @rray[1];
<p6eval> rakudo 372e6b: OUTPUT«a␤b␤»
<sisar> ^^ when i spilt 'abc' with '' as delimiter, the first element
is 'a' right?
<TimToady> no, there's a '' on the front
<TimToady> use .comb to do that
<sisar> oh so its a rakudobug ?
<sisar> & not nieczabug ?
<TimToady> arguably niecza is more consistent with how /''/ would split
<sisar> masak: would you be so kind to report this rakudobug?
<TimToady> p6: my $a = 'abc'; my @rray = $a.split(/''/); say @rray[0];
say @rray[1];
<p6eval> ..rakudo 372e6b, niecza v17-4-ge5b869e: OUTPUT«␤a␤»
<TimToady> they both think there's a null string in that case before
the first empty match
* masak submits rakudobug
<TimToady> so I'd argue for consistency, especially when .comb is available
<sisar> masak++

Reply via email to