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

I find the Perl5 (and, surprisingly, Ruby) behavior rather counterintuitive.

Reply via email to