From: "ara.t.howard" Date: 2008-04-19T01:01:45+09:00 Subject: Re: What's the 'portable' way to do this? On Apr 18, 2008, at 1:51 AM, Xie Hanjian wrote: > Thanks for your reply, but this seems not work. > > I think the problem is when you do STDIN.dup, you're duplicating the > already redirected STDIN. > > yeah, you'll need to start out with a tty - maybe taking in the input file as an argument or option. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama