in reply to Re^2: Not able to replace to directory paths
in thread Not able to replace to directory paths

What does $input contain? What do you expect it to contain? What does the file of the name in $input contain? Why are you not using strictures?

True laziness is hard work
  • Comment on Re^3: Not able to replace to directory paths