Message from discussion
split /(..)*/, 1234567890
Newsgroups: perl.perl6.language
Path: g2news1.google.com!news3.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <autri...@autrijus.org>
Mailing-List: contact perl6-language-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-langu...@perl.org
Received: (qmail 17673 invoked from network); 12 May 2005 15:59:51 -0000
Received: from x1a.develooper.com (HELO x1.develooper.com) (216.52.237.111)
by lists.develooper.com with SMTP; 12 May 2005 15:59:51 -0000
Received: (qmail 17124 invoked by uid 225); 12 May 2005 15:59:51 -0000
Delivered-To: perl6-langu...@perl.org
Received: (qmail 17120 invoked by alias); 12 May 2005 15:59:50 -0000
X-Spam-Status: No, hits=-1.3 required=8.0
tests=BAYES_00,SUBJ_HAS_UNIQ_ID
X-Spam-Check-By: la.mx.develooper.com
Received-SPF: neutral (x1.develooper.com: local policy)
Received: from msr38.hinet.net (HELO msr38.hinet.net) (168.95.4.138)
by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 12 May 2005 08:59:49 -0700
Received: from mail.autrijus.org (220-132-132-105.HINET-IP.hinet.net [220.132.132.105])
by msr38.hinet.net (8.9.3/8.9.3) with ESMTP id XAA12026;
Thu, 12 May 2005 23:59:33 +0800 (CST)
Received: by mail.autrijus.org (Postfix, from userid 1000)
id D0637DAACF; Thu, 12 May 2005 23:59:26 +0800 (CST)
Date: Thu, 12 May 2005 23:59:26 +0800
To: =?utf-8?B?IlRTYSAoVGhvbWFzIFNhbmRsYe+/vSki?= <Thomas.Sandl...@orthogon.com>
Cc: Autrijus Tang <autri...@autrijus.org>, perl6-langu...@perl.org
Subject: Re: split /(..)*/, 1234567890
Message-ID: <20050512155926.GA42071@aut.dyndns.org>
References: <20050510145335.GA36777@aut.dyndns.org> <42836DD2.8020102@orthogon.com>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU"
Content-Disposition: inline
In-Reply-To: <42836DD2.8020102@orthogon.com>
User-Agent: Mutt/1.4.2.1i
X-Copyright: Copyright 2004 by Autrijus Tang. All rights reserved.
X-Public-Key: http://autrijus.org/pubkey.asc
X-Notice: Forwarding of this mail prohibited without written consent.
Approved: n...@nntp.perl.org
From: autri...@autrijus.org (Autrijus Tang)
--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, May 12, 2005 at 04:53:06PM +0200, "TSa (Thomas Sandla=EF=BF=BD)" wr=
ote:
> Autrijus Tang wrote:
> > pugs> split /(..)*/, 1234567890
> > ('', '12', '34', '56', '78', '90')
> >
> >Is this sane?
>=20
> Why the empty string match at the start?
I don't know, I didn't invent that! :-)
$ perl -le 'print join ",", split /(..)/, 123'
,12,3
Thanks,
/Autrijus/
--azLHFNyN32YCQGCU
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
iD8DBQFCg31etLPdNzw1AaARAgcTAKCf/O4ZSpIfU4t7us5wBQWHPe76yQCfZ3PO
cyXOtlmZA4bfWkf+g51Dnsg=
=6YHf
-----END PGP SIGNATURE-----
--azLHFNyN32YCQGCU--