in reply to Re: Perl treats period as space in stringin 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
if ($string =~ /^\Q$phrase\E\z/i) [download]
use feature qw( fc ); if (fc($string) eq fc($phrase)) [download]
The second is probably faster.
Seeking work! You can reach me at ikegami@adaelis.com