Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,I was doing a perl script which will do unzipping a .gz file and doing some operations.This script was working for small files.But when i tried with some big files i was getting an error like "gunzip failed: Inflation Error: data error for <filename>".Can anyone help?

The code i used for this is
use IO::Uncompress::Gunzip qw(gunzip $GunzipError); gunzip $input => $output or die "gunzip failed: $GunzipError for $output\n";

Replies are listed 'Best First'.
Re: Inflation error
by choroba (Cardinal) on Jan 08, 2013 at 09:49 UTC
    Can you still inflate the files with the `gunzip` command?
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: Inflation error
by Anonymous Monk on Jan 08, 2013 at 07:33 UTC
    So , what is $input and $output?
      $input is the input file name and $output is the output filename .Say $input="file.dat.gz" $output="file.dat"

        Aha, so they're "data", seems to be connected to "data error", might want to investigate that