in reply to problem path stored in hash

Your code does not seem to produce that result. However, I notice if you overlay "test.pl" on top of the string "/root/working/" you get "test.plorking/".