On 1 Oct 2000 06:40:08 -0000, Perl6 RFC Librarian wrote:
>Perl 5 split does five things that I think are just annoying, and
>which I suggest be removed:
I've got one more problem.
for my $i (0 .. 4) {
$_ = ':' x $i;
my @a = split /:/, "", -1;
my $count = @a;
print "$i - $count\n";
}
-->
0 - 0
1 - 2
2 - 3
3 - 4
4 - 5
See the jump at the front?
--
Bart.
- RFC 361 (v1) Simplifying split() Perl6 RFC Librarian
- Re: RFC 361 (v1) Simplifying split() Bart Lateur
- Re: RFC 361 (v1) Simplifying split() Bart Lateur
- Re: RFC 361 (v1) Simplifying split() Chaim Frenkel
- Re: RFC 361 (v1) Simplifying split() Sean M. Burke
- Re: RFC 361 (v1) Simplifying split() Tom Christiansen
- Re: RFC 361 (v1) Simplifying split() Chaim Frenkel
- Re: RFC 361 (v1) Simplifying split() John Porter
- Re: RFC 361 (v1) Simplifying split() Tom Christiansen
- Re: RFC 361 (v1) Simplifying split() Jonathan Scott Duff
- Re: RFC 361 (v1) Simplifying split() Bart Lateur
- Re: RFC 361 (v1) Simplifying spl... Jonathan Scott Duff
