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