develooper Front page | perl.perl6.language | Postings from May 2005

Re: split /(..)*/, 1234567890

Thread Previous | Thread Next
From:
=?ISO-8859-1?Q?=22TSa_=28Thomas_Sandla=DF=29=22?=
Date:
May 12, 2005 07:53
Subject:
Re: split /(..)*/, 1234567890
Message ID:
42836DD2.8020102@orthogon.com
Autrijus Tang wrote:
>     pugs> split /(..)*/, 1234567890
>     ('', '12', '34', '56', '78', '90')
> 
> Is this sane?

Why the empty string match at the start?
-- 
$TSa == all( none( @Larry ), one( @p6l ))

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