in reply to Re^2: Best practices - absolute paths?
in thread Best practices - absolute paths?

Nothing, it's just that using relative paths and chdir()ing in the same program can lead to confusion; the current working directory is global, so you need to make sure the cwd and your relative path "match".

Replies are listed 'Best First'.
Re^4: Best practices - absolute paths?
by Eyck (Priest) on Aug 15, 2005 at 05:44 UTC
    Isn't this the whole point of relative paths anyway?
    chdir("some.dir"); open(F,"file");

    All is well, unless of course something changes my CWD between chdir and open.

    If you want to walk different directories, well, you gotta put your seperate codepaths on seperate processess, not threads.