mmaule has asked for the
wisdom of the Perl Monks concerning the following question:
Fairly new to perl as you can guess by this question.
I'm using tempdir from File::Temp. My script needs to do some pre-delete processing on files in the tempdir prior to it being cleaned up. What is the correct way to do that?
To be more specific - some of the files in tempdir will get created with a user other than $< (using sudo on Linux). I need to have a hook whereby I can revert the ownership to $< prior to DESTROY so that they can be cleaned up.