On Thu, May 12, 2005 at 02:56:37PM -0500, Jonathan Scott Duff wrote:
> On Thu, May 12, 2005 at 12:01:59PM -0700, Larry Wall wrote:
> > Yes, though I would think of it more generally as
> > 
> >     ('', $0, '', $0, '', $0, ...)
> > 
> > where in this case it just happens to be
> > 
> >     ('', $0)
> > 
> > and $0 expands to ['12','34','56','78','90'] if you treat it as an array.
> 
> Exactly so.  Principle of least surprise wins again! ;)

Thanks, implemented as such.

    pugs> map { ref $_ } split /(..)*/, 1234567890
    (::Str, ::Array::Const)

Thanks,
/Autrijus/

Attachment: pgpFppB36mbol.pgp
Description: PGP signature

Reply via email to