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? It doesn's seem to be specced yet. > > I would prefer the current pugs behavior; it's consistent with the general > case, in which a string which does not match the splitting regex results in > a single-item list containing the original string. This is the Python > behavior. > > I find the Perl5 (and, surprisingly, Ruby) behavior rather counterintuitive.
FWIW, I agree with Mark. -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]