in reply to Windows directory path variable binding operator substitutions

$path is interepreted as a regex, which means that it tries to match \t, which is a tab character.
$path =~ s/\Q$path\E//i;
should work. See also quotemeta.
  • Comment on Re: Windows directory path variable binding operator substitutions
  • Download Code