The '.' is a special character inside of regular expressions, signifying 'anything except newline' (usually).
You probably want to use quotemeta like this:
my $word = quotemeta( $_[1] );
This should 'escape' (with a leading '\' character) anything that could be interpreted as a special character.
Dave
In reply to Re: regex: finding something followed explicitly by a dot
by davido
in thread regex: finding something followed explicitly by a dot
by rmexico
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |