in reply to Directory Recursion Question
On any unix system, $path = `cd`; would set $path to an empty string. If it produces a non-empty string on your system, this string almost certainly includes the line termination ("\n", or "\r\n" or whatever). Anyway, use the Cwd module to set $path.