From: Vincent Fourmond Date: 2006-09-28T01:57:09+09:00 Subject: Re: how to determine if pipe is given greg wrote: > To retrieve piped input to my program I can use something like > ARGF.readlines > > However, if there is no piped data, this will wait for input from the > terminal- how can I avoid this? You can check if $stdin is a terminal with $stdin.tty? Vince