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
