in reply to Re: PerlIO::gzip - Handling Corrupt tar file
in thread PerlIO::gzip - Handling Corrupt tar file

Here is the snippet..

if ( $log =~ /.tar.gz$/ ) { unless ( open LOG, "<:gzip", $log ){ log_msg (LOG_ERR, "Cannot open $log for read : File may be + corrupt"); next; } }


I also tried with the argument as lazy. The thing is ,when i try to untar those files manually , i am getting some errors. But the script tries to open those files and read