From: mental@... Date: 2005-12-10T07:05:04+09:00 Subject: Re: new to Ruby - pls help in translating this Quoting James Edward Gray II : > Replacing the above with: > > ARGF.each do |line| > > Is the same thing, but more powerful. You could feed it multiple > files at once, or use it in pipelined processing. Just FYI. Ah, thank you. I couldn't remember how to do that. That's closer in spirit to his original Perl fragment, which used <>. Perl: while (<>) { ... } Ruby: while ARGF.gets ... end (not that I'm advocating $_) -mental