in reply to Using the file handle created by File::Temp to set specific file permissions

As the documentation for perl's chmod() function says, on platforms that support it, you can pass a file handle rather than a filename to chmod().

Dave.

  • Comment on Re: Using the file handle created by File::Temp to set specific file permissions

Replies are listed 'Best First'.
Re^2: Using the file handle created by File::Temp to set specific file permissions
by mldvx4 (Hermit) on Dec 11, 2021 at 06:04 UTC

    Thanks. I had missed that. Both chmod and chown can process file handles.