develooper Front page | perl.fwp | Postings from March 2002

Re: TPR1 post-mortem

Thread Previous
From:
Rick Klement
Date:
March 8, 2002 07:19
Subject:
Re: TPR1 post-mortem
Message ID:
3C88D688.F9A7ECD4@pacbell.net
"Marcelo E. Magallon" wrote:
> 
>  A question of my own: why doesn't
> 
>     s/\B.\B/$&$&/g
> 
>  work as I expect, namely abcd -> abbccd.  I really can't figure it out
>  by reading the docs.

I ran smack into this one too.

It works on 5.005_03, but fails on 5.6.1, so I figured it's a bug.
Does anyone have a different version of perl to try it on?

Andrew.Savige@ir.com wrote:
> 
> Maybe Perl golf is useful, after all -- as a QA tool to find
> Perl bugs. :)

-- 
Rick Klement

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About