in reply to Re^2: Perl treats period as space in string
in thread Perl treats period as space in string
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 email@example.com