I am using PerlIO::gzip for reading the tar files without extracting those file. But the problem i am facing when i come across some corrupt file.
Basically i am writing a log parsing application , which parses the log files of the system in tgz format. The script hangs and some time throws out of memory when it tries to read some corrupt file.
Is there any way to identify the file is corrupt and if its corrupt , skip that file from opening and parsing.