in reply to Re: Recursively walk up a directory tree
in thread Recursively walk up a directory tree

Isn't relying on cwd less robust than using __FILE__? I guess I'm having trouble coming up with what might chdir/cd on/under the script, so maybe not.