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

split /(..)*/, 1234567890

Thread Next
From:
Autrijus Tang
Date:
May 10, 2005 07:53
Subject:
split /(..)*/, 1234567890
Message ID:
20050510145335.GA36777@aut.dyndns.org
In Pugs, the current logic for array submatches in split() is
to stringify each element, and return them separately in the
resulting list.  To wit:

    pugs> split /(..)*/, 1234567890
    ('', '12', '34', '56', '78', '90')

Is this sane?

Thanks,
/Autrijus/

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