in reply to From chat to here :) chdir() and test -f issues.

If the hidden character is a '\0' it denotes an end of string for the purposes of the file system.If you do
chdir("$HOME/$games/maps"); #hidden \0 here ^
you will actually chdir to $HOME/$games. No mapfile there. In two stages you will first land in the same dir, but you will know it and not expect the mapfile before stage 2.

Replies are listed 'Best First'.
Re: Re: From chat to here :) chdir() and test -f issues.
by snafu (Chaplain) on Jul 05, 2001 at 02:07 UTC
    This is exactly what happened.

    ----------
    - Jim