in reply to Re: File > 2G under linux
in thread File > 2G under linux

It was written:

open(INPUT, "/usr/bin/gzip -d -c '$filename' |") open(OUTPUT, "| /usr/bin/gzip > '$filename'");

Make sure that you use a different value for $filename on each of these calls, or you (may|will) clobber the contents of the file you are trying to read, that is, unless you are using an OS with versioned files.

--MidLifeXis

Replies are listed 'Best First'.
Re: Re: Re: File > 2G under linux
by edan (Curate) on Sep 14, 2003 at 07:21 UTC

    Quite right. Goog thing I included the 'UNTESTED' disclaimer! :-) I cut and paste some code from different places, one of which did the reading and the other writing - I was solving a different problem than the one posed here. Good eye!

    --
    3dan