in reply to Recursive Path

You are confusing 'current directory' with 'directory where the script is'.

You have rolled you own poor man's FindBin but you do not need to be a poor man - FindBin is standard.