From: Logan Capaldo Date: 2006-06-22T04:18:41+09:00 Subject: Re: How to do this debugging? On Jun 20, 2006, at 2:53 PM, Philip Rhoades wrote: >> $stdin.each_line do |line| >> puts "BUBBA: "+line >> end You know, if you use ARGF instead of $stdin your program will work for ruby a.rb some_file and cat some_file | ./a.rb