Note that this also matches fooclub.market. Not sure if that's what you want. If you want to perform an exact case-insensitive comparison, use
orif ($string =~ /^\Q$phrase\E\z/i)
use feature qw( fc ); if (fc($string) eq fc($phrase))
The second is probably faster.
Seeking work! You can reach me at ikegami@adaelis.com
In reply to Re^3: Perl treats period as space in string
by ikegami
in thread Perl treats period as space in string
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |