in reply to Regex Mystery

if ($file =~ m/\Q$regex/i) {

because \t is a tab.

Replies are listed 'Best First'.
Re^2: Regex Mystery
by roho (Bishop) on Apr 13, 2025 at 04:44 UTC
    Thanks tybalt89. I knew it must be something obvious. Time to rest now.

    "It's not how hard you work, it's how much you get done."

Re^2: Regex Mystery
by harangzsolt33 (Deacon) on Apr 13, 2025 at 15:47 UTC
    Wait, wouldn't this be more appropriate?:

          if ($file =~ m/\Q$regex\E/i) ...

      theyre exactly the same