in reply to Archive mail into a database
I don't believe that you really need to care about that close() failing, since the file is open for reading. (Of course it doesn't hurt to check.)
But I'd be much more concerned about the possible failure of those move and unlink calls.
Btw... Why are you using external 'mv'? You could use the move function of the standard File::Copy module; it is both portable and 'smart'.
|
|---|