in reply to How do I get the output of Crypt::OpenPGP to a file
Instead of select I would just use the filehandle.
open OUT, ... print OUT $file; close OUT; rename ...
This will make sure the file data is flushed before the rename which isn't strictly necessary but makes things happen in the order you expect.
Also, for readability, I would put a space between $processing and (@file).
|
|---|