in reply to Re^13: search and replace strings in different files in a directory
in thread search and replace strings in different files in a directory

I'd just remove the BOM manually before passing the string to Path::Tiny:
my $directory = shift; my $BOM = "\x..."; # Fill in the actual problematic string $directory = s/$BOM//;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re^14: search and replace strings in different files in a directory
  • Download Code