Problems? Is your data what you think it is? | |
PerlMonks |
Re: IO::Compress::Gzip file close issuesby pmqs (Friar) |
on Jul 26, 2016 at 22:44 UTC ( [id://1168601]=note: print w/replies, xml ) | Need Help?? |
Under the hood IO::Compress::Gzip only uses Perl IO. It does use an extarnal library for the compression, but not for the IO. That means that once this line of your script has been run
the file referenced by $archfile will have been closed. What is the value of $! when unlink fails? Also, does any other process have $archfile open? You cannot delete a file on windows if a proces has it open.
In Section
Seekers of Perl Wisdom
|
|