See perlre.
/./ will match the character '.', but will also match many other characters. What you likely want is to quote the dot, so it loses its special meaning:
"." =~ m!\.!
Update: GrandFather spotted a missing ! at the end of the regular expression
In reply to Re^3: Need RegExp help - doing an AND match
by Corion
in thread Need RegExp help - doing an AND match
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |