in reply to Re^4: Need to replace string from external file
in thread Need to replace string from external file

I mean did you find the basis for this online somewhere, which you'd copied/pasted. Don't use File::Slurp (explained here, and elsewhere) as you're already using File::Path.

  • Comment on Re^5: Need to replace string from external file