in reply to Re: tracking progress of gzip'd file
in thread tracking progress of gzip'd file

The above's probably mentioning using Compress::Zlib to do the expanding rather than shelling out to gzip.

As a somewhat related aside: the problem is that you're only going to know how much of the input file you've processed; you can't reliably know how much output you're going to get before you actually uncompress it (with gzip or bzip2; zip stores the compressed and uncompressed sizes in its header). As an extreme example, this 1483 byte uuencoded file will blow up to 1M of *'s when gunzip'd.

begin 664 big.gz M'XL("#7N)T`"`WIO<F-H`.W!,0$```#"H#[K']`0OD`!```````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` 7`````````````````'P&/C?KL0``$``` ` end

Update: Never mind me, I'd forgotten about gzip -l as mentioned below. Feh, must be Monday . . .