in reply to regex: finding something followed explicitly by a dot
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
|
|---|