in reply to Getting Text From A Compressed File

My curiosity (I'm a Linux user): what does it mean that pipes don't work? Isn't it possible to do something like:
open CLEARDATA, "gunzip -c $filename |"; while (<CLEARDATA>) { /^my.*pattern$/ && print }
in Windows? I thought there was some kind of work-around for this.

TIA,

Flavio (perl -e "print(scalar(reverse('ti.xittelop@oivalf')))")

Don't fool yourself.

Replies are listed 'Best First'.
Re^2: Getting Text From A Compressed File
by mdog (Pilgrim) on Apr 01, 2005 at 18:35 UTC
    You are absolutely correct...that does work!

    When I said "pipes don't work", I meant that you can't pipe the output of one program directly into the input of another using the normal *NIX way of "|".

    I actually did not think about messing with the filehandles the way you did so many thanks (and ++). Learned another great thing here on perlmonks!