Sorry, that's my error. The command to open must be:
my $cmd = sprintf 'gzip -cd "%s" |', $file;
I think now is a good time to (re)read and understand the documentation for open.
In reply to Re^9: Reading zipped files (.gz)
by Corion
in thread Reading zipped files (.gz)
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |