From: Ian Macdonald Date: 2002-05-09T09:55:56+09:00 Subject: Re: Want application to read file or from pipe On Thu 09 May 2002 at 08:54:20 +0900, wconrad@yagni.com wrote: > On Thu, May 09, 2002 at 08:31:49AM +0900, Jim Freeze wrote: > > Is there a better way to do this? > > Jim, I'm confused. I thought my little example did it all. Let me > rephrase it: > > for line in $< > p line # or do whatever you want with it. > end The only change I'd make here is to substitute ARGF for $<, since it's more readable. Ian -- Ian Macdonald | Make war not sex. (It's safer.) ian@caliban.org | | | |