Hi , Small confusion about word boundaries. word boundaries matches anything between non-word character and word character ,right. Here is small example : $_ = "?Jack do you know the beauty of perl" print "Enter your text:"; my $pattern = <STDIN>; chomp $pattern;
if (/$pattern/){ print "1.$1\n"; } Now say I have given pattern as :(\b\W\b) .what will be the result? My understanding is quotes a (nonword character) ? a (nonword character) followed by word charatcer "j". The result I have expected ?. but result is empty string. Please can some about word boundaries? Regards, chandan.