in reply to Re^2: Why doesn't chmod work on this lexical filehandle?
in thread Why doesn't chmod work on this lexical filehandle?
Then it sounds like $OUT is being interpreted as a string and that that string is being interpreted as a file name: If chmod had thought that you had passed a file handle to it on a system where Perl doesn't think fchmod() is supported, then it would have died rather than returning 0. If you passed a file handle to chmod() on a system with fchmod, "No such file or directory" could not have been the failure reason.
- tye
|
|---|