in reply to Re^2: Big problem in pattern matching
in thread Pattern Matching problem

Remove
if (/$string/) {

or change it to

if (/\Q$string\E/) {
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: Big problem in pattern matching
by auhakim (Novice) on Jun 05, 2013 at 08:20 UTC
    and do you know how to make it case insensitive? I tried to change it with (/(\Q$string\E\S\i*)/) but it does not work -,-
      Study the documentation:
      /(\Q$sting\E\S*)/i
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ