in reply to Re^2: Not able to replace to directory pathsin 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?