Re: Pipe usage

2001-07-26 Thread Michael Fowler
On Thu, Jul 26, 2001 at 04:18:58PM -0500, Frank Newland wrote: > Q: > 1. Isn't CONTENTS a file handle to the uncompressed file? No, it's a filehandle to the output of the compress command. > 2. Why doesn't perl execute my while statement? It does, but there's nothing to read, see below. > 3.

Re: Pipe usage

2001-07-26 Thread Brett W. McCoy
On Thu, 26 Jul 2001, Frank Newland wrote: > I want to print the contents of an archived file. When I run this script, > all it does is uncompress my file. > > Q: > 1. Isn't CONTENTS a file handle to the uncompressed file? No. I think what you want is uncompress -c, which dumps the file to stand