in reply to Why does File::Find try to chdir to $PWD (and fail) even if $PWD is not itself in search list?

Seems to me that File::Find just wants to restore the current working directory. That is, after finishing the search, it current working directory should be the same as it was when the search started.

I think that's perfectly fine attitude for a subroutine; to have as few side effects as possible.

  • Comment on Re: Why does File::Find try to chdir to $PWD (and fail) even if $PWD is not itself in search list?