in reply to Not able to replace to directory paths

Line 25 needs to be close $OUTPUT.
I also had some errors on your line #5. I switched to my $client_root='E:/qdepot_automation';