Matthew Palmer wrote:
Reading the Fine Manual, we discover that your code probably won't work anyway:
Yes, the two yield exactly the same results as shown below. #cat t1.rb #!/usr/bin/env ruby puts $stdin.readline while not $stdin.eof #cat t2.rb #!/usr/bin/env ruby puts $stdin.readlines while not $stdin.eof #cat t.txt The quick brown fox #cat t.txt | t1.rb The quick brown fox #cat t.txt | t2.rb The quick brown fox >A very scary way to program. Not scary at all for my clients. And time did tell. My programming style worked for me and the people wanting my services. O Plameras _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders