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

Re: TPR1 post-mortem

Thread Previous | Thread Next
From:
Stephen Turner
Date:
March 8, 2002 10:25
Subject:
Re: TPR1 post-mortem
Message ID:
Pine.LNX.3.96.1020308182437.19057A-100000@gentoo
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'
bdfh

-- 
Stephen Turner, Cambridge, UK    http://homepage.ntlworld.com/adelie/stephen/
"This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01


Thread Previous | 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