From: Lothar Scholz Date: 2004-03-24T00:26:21+09:00 Subject: Re: Ruby style guidance (was: Re: Need some advice on PickAxe II) Hello gabriele, Tuesday, March 23, 2004, 3:44:27 PM, you wrote: gr> take as an example: how to iterate on stdin input? gr> One may use gr> while gets gr> do stuff with $_ gr> end gr> or $stdin.each_line gr> or $stdin.each do |line| gr> or gr> while line = gets gr> end gr> yes I could go and grep the whole stdlib but I'd prefer to have a gr> reference Ruby is the successor of Perl, so there are many ways to do it. There is no consistent style in the standard library. It is written by a lot of persons and in 1.8 a lot of files are included that nobody expected to be ever in the standart library. -- Best regards, Lothar mailto:mailinglists@scriptolutions.com