From: William James Date: 2005-09-13T16:16:35+09:00 Subject: Re: Adventures in html decoding. Jim Freeze wrote: > On 9/12/05, Morgan wrote: > > *never even -seen- ARGF before* > > ARGF is a reference to $stdin. > > -- > Jim Freeze An object providing access to virtual concatenation of files passed as command-line arguments or standard input if there are no command-line arguments. -- Ruby in a Nutshell ARGF is no more esoteric than ARGV, and it's quite handy. Let's say you want to process every line of every file on the command-line: ruby -e 'ARGF.each_line{|x| p x}' file1 file2 file3