Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by JavaFan (Canon)
on Nov 24, 2008 at 17:09 UTC ( [id://725645]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://725645]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-18 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found