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

Ok. Im gonna test to see if there are any '/r's in the string but I can't seem to think of a good way to see non-printing characters in a string (cat only works while streaming the contents of files afaik.) Anyway, if anyone has any good ideas on this one Im open to them.

On the other hand, the only thing that still wags my head on this is the fact that if I break the chdir()'s up into seperate changes (ie :

chdir("$HOME/$gamedir/maps"); # does not work in the script
vs

chdir("$HOME/$gamedir"); chdir("maps"); # works fine.
)

This still makes me wonder...why would invisible characters cause problems for the first example but not for the second. This is the question I was originally getting at, although I don't think I stated it very well. :) Come on! It was 430AM =).

Anyway, Im curious to see if anyone can answer that one. Thanks again guys.

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