From: Mike Stok Date: 2001-02-23T22:15:49+09:00 Subject: [ruby-talk:11375] Re: Palindromes, $/, chomp, and lesser surprises. On Fri, 23 Feb 2001, Jonathan Feinberg wrote: > Also, I'm curious as to which idiom is more Rubyish: "while gets" or > "ARGF.each { |line| #block }". Do the two have different > implications? ARGF.each { |line| line.strip! puts line if line == line.reverse } seems less like perl which stops me trying to use ruby as a dialect of perl ;-) Mike -- mike@stok.co.uk | The "`Stok' disclaimers" apply. http://www.stok.co.uk/~mike/ | GPG PGP Key 1024D/059913DA | Fingerprint 0570 71CD 6790 7C28 3D60 stok@colltech.com (CT - work) | 75D2 9EC4 C1C0 0599 13DA