in reply to Re: Parsing a large file 80GB .gz file and making an output file with specifice columns in this original file.
in thread Parsing a large file 80GB .gz file and making an output file with specifice columns in this original file.

why would you want to use the two-argument form when you can use the five-argument form?
open my $fh, '-|', 'gunzip', '-cd', $filename or die "Couldn't decompress '$filename' via gunzip: $! / $?";
  • Comment on Re^2: Parsing a large file 80GB .gz file and making an output file with specifice columns in this original file.
  • Download Code

Replies are listed 'Best First'.
Re^3: Parsing a large file 80GB .gz file and making an output file with specifice columns in this original file.
by Corion (Patriarch) on Jul 16, 2013 at 12:02 UTC

    I use the two-argument form because the three-argument form fails for me on Windows, unfortunately:

    >perl -we "my $fn= shift; open fh, '|-', 'gunzip', '-cd', $fh or warn +$!" foo.gz List form of pipe open not implemented at -e line 1.