in reply to Reading zipped files (.gz)
Your filenames end with newlines. You likely do not want that.
Also, the following code makes no sense:
open my $fh, q{<}, qq{tar xzOF $file | } or die $!;
Either use the two-argument version of open, with an appended pipe, or use the three argument version, with -|. Mixing two-argument and three-argument syntax makes no sense. Perl tries to open a file that has a name of "tar xzOF ...", and such a file presumably does not exist.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading zipped files (.gz)
by ravi45722 (Pilgrim) on Nov 18, 2015 at 08:52 UTC | |
by Corion (Patriarch) on Nov 18, 2015 at 09:12 UTC | |
by ravi45722 (Pilgrim) on Nov 18, 2015 at 09:25 UTC | |
by Corion (Patriarch) on Nov 18, 2015 at 09:26 UTC | |
by ravi45722 (Pilgrim) on Nov 18, 2015 at 09:33 UTC | |
|