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

Re: TPR1 post-mortem

Thread Previous | Thread Next
Stephen Turner
March 8, 2002 10:25
Re: TPR1 post-mortem
Message ID:
On Fri, 8 Mar 2002, Keith C. Ivey wrote:
> I wondered that too.  I figured it was because \B wouldn't match 
> twice at the same place, but then I saw that s/\B./$&$&/g didn't work 
> as expected either.

I fell foul of this too. It's maybe worth pointing out that m/\B./g doesn't
have the expected effect either:

% perl -le'print "abcdefgh"=~/\B./g'

Stephen Turner, Cambridge, UK
"This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About