Re: split on empty string

2006-01-18 Thread Larry Wall
On Wed, Jan 18, 2006 at 09:08:07PM +0100, Juerd wrote: : Jonathan Lang skribis 2006-01-18 7:26 (-0800): : > Mark Reed wrote: : > > Perl6 "".split(/whatever/) is equivalent to split(/whatever/,"") in Perl5. : > I'm hoping that the perl 5 syntax will still be valid in perl 6. : : Don't worry, it is

Re: split on empty string

2006-01-18 Thread Juerd
Jonathan Lang skribis 2006-01-18 7:26 (-0800): > Mark Reed wrote: > > Perl6 "".split(/whatever/) is equivalent to split(/whatever/,"") in Perl5. > I'm hoping that the perl 5 syntax will still be valid in perl 6. Don't worry, it is. Juerd -- http://convolution.nl/maak_juerd_blij.html http://con

Re: split on empty string

2006-01-18 Thread Larry Wall
On Tue, Jan 17, 2006 at 07:24:14PM +0200, Gaal Yahas wrote: : While cleaning up tests for release: : : "".split(':')=> : :()# Perl 5 :("",) # pugs : : Which is correct? It doesn's seem to be specced yet. This has nothing to do with splitting on the em

Re: split on empty string

2006-01-18 Thread Jonathan Lang
Mark Reed wrote: > Perl6 "".split(/whatever/) is equivalent to split(/whatever/,"") in Perl5. I'm hoping that the perl 5 syntax will still be valid in perl 6. -- Jonathan "Dataweaver" Lang

Re: split on empty string

2006-01-18 Thread Mark Reed
On 2006-01-18 10:04 AM, "David K Storrs" <[EMAIL PROTECTED]> wrote: > Just to show opposite, I've always found that behavior (i.e. > returning the original string unchanged) confusing. C works > based on sequential examination of the target string to locate > matching substrings on which to split.

Re: split on empty string

2006-01-18 Thread David K Storrs
On Jan 18, 2006, at 1:18 AM, Jonathan Scott Duff wrote: On Tue, Jan 17, 2006 at 12:35:57PM -0500, Mark Reed wrote: On 2006-01-17 12:24 PM, "Gaal Yahas" <[EMAIL PROTECTED]> wrote: [split on empty string] doesn's seem to be specced yet. I would prefer the current pugs behavior; it's consisten

Re: split on empty string

2006-01-17 Thread Jonathan Scott Duff
On Tue, Jan 17, 2006 at 12:35:57PM -0500, Mark Reed wrote: > On 2006-01-17 12:24 PM, "Gaal Yahas" <[EMAIL PROTECTED]> wrote: > > > While cleaning up tests for release: > > > > "".split(':')=> > > > >()# Perl 5 > >("",) # pugs > > > > Which is correct?

Re: split on empty string

2006-01-17 Thread Mark Reed
On 2006-01-17 12:24 PM, "Gaal Yahas" <[EMAIL PROTECTED]> wrote: > While cleaning up tests for release: > > "".split(':')=> > >()# Perl 5 >("",) # pugs > > Which is correct? It doesn's seem to be specced yet. I would prefer the current pugs behavior;