Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by dave_the_m (Monsignor)
on Dec 10, 2021 at 17:54 UTC ( [id://11139559] : note . print w/replies, xml ) Need Help??


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 (Friar) on Dec 11, 2021 at 06:04 UTC

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