From: Martin DeMello Date: 2004-09-03T14:25:18+09:00 Subject: Re: autochomp? Robert Klemme wrote: > > "Martin DeMello" schrieb im Newsbeitrag > news:idIZc.301315$J06.4478@pd7tw2no... > > Any way to make IO.readlines chomp each line before adding it to the > > array? (i.e. a = IO.readlines.map {|i| i.chomp} but done in the > > readlines call itself) > > Not AFAIK. You can do [...] Ah - I was hoping there was some sort of $variable that controlled chomping. martin