prasadbabu has asked for the wisdom of the Perl Monks concerning the following question:

Monks, today i was preparing question for beginners in regex. So to tell them, that we can use any delimiters for regex as per the documentation perlre, i chose the below question.

$str = 'abc.'; $str =~ s.\...; print $str;

Very well I know that its not good using the delimiters like '.' etc. Before taking the question i tested this and found the odd answer. I expected 'abc' but i got 'bc.'. Where am i going wrong? I came with this question in CB and i was sent here. :-)

Thanks in advance