From: David Masover Date: 2010-05-16T09:48:05+09:00 Subject: Re: chomp like Perl operator in Ruby On Saturday, May 15, 2010 04:34:20 pm Ben Bleything wrote: > On Sat, May 15, 2010 at 2:26 PM, Parag Kalra wrote: > > Is there a chomp like Perl operator in Ruby using which I can literally > > > remove new line characters as show below in my Perl script: > There's a really easy way to answer this question for yourself: > > $ ri chomp Not the whole story. If you know you're not going to use the original string, you might consider chomp! instead.