-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi John, On Tue, 26 Dec 2000 10:47, I think John Rubinubi wrote: > On p. 16 of Programming Ruby is given > > ARGF.each {|line| print line if line =~/Ruby/ } > > which is supposed to print the inputted lines which contain "Ruby" > > The while loop example in the book runs as expected but this ARGF > one-liner doesn't seem to do anything. As I look in the index of my pickAxe book for ARGF I notice that on page 219 it says that it is a synonym for $<. So flpping back to page 217 explains that $< is a global IO variable that represents the contentation of the contents of all the files given as command-line arguements, or $stdin if there are no arguements present. Hopefully this helps you out. Now that Christmas is over, I guess we move on to new years - happy new years all. > John - -- Signed, Holden Glova -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6R9w2zrxa+Gy/b/4RAu/FAJ4o68I1fwg9g9h0WL0P/ORnHVUU+wCfcXoq FCOPkHHpKy3GJdcR8FGJK0w= =HTzV -----END PGP SIGNATURE-----