|more useful options|
PerlIO::gzip can't handle appended stuffby Skeeve (Parson)
|on Apr 16, 2021 at 11:46 UTC||Need Help??|
Skeeve has asked for the wisdom of the Perl Monks concerning the following question:
I'm wondering what I'm missing.
Every hour I receive a bunch of data which I write into a compressed (gzip) text file.
I collect all the 24 data deliveries into one file by simply appending to the file created in the first hour.
When I do a gunzip -c myfile.gz I can see all my data.
Whenn I open the same file with PerlIO::gzip I only get the first set of data.
Here is a small script to reproduce:
Question is: How can I convince perl to continue reading data?