I have a database of phrases that I'm checking a string against. Perl recognizes all periods as spaces even if I don't want it to. What is the workaround for this?
The above recognizes "club.market" and "club market" but I only want to recognize the one with the period. What am I missing?$phrase = "club.market"; if ($string =~ m/$phrase/i){
In reply to Perl treats period as space in string by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |