On 7/20/10 Tue Jul 20, 2010 2:06 PM, "John W. Krahn" <jwkr...@shaw.ca> scribbled:
> Rob Dixon wrote: >> On 20/07/2010 16:22, Chandan Kumar wrote: >>> >>> Small confusion about word boundaries. word boundaries matches >>> anything between non-word character and word character ,right. >> >> Not quite. > > Quite. > >> /\b/ matches any (zero-length) point in a string between a >> word and a non-word character, > > Correct. > >> or between a word character and the >> beginning or end of the string, > > Incorrect. It matches *only* between \w and \W characters. Then how are we to interpret this: % perl -e ' $x = "abc"; if( $x =~ /\ba/ ) { print "match\n"; }else{ print "no match\n"; }' match -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/