From: Parag Kalra Date: 2010-05-16T06:26:39+09:00 Subject: chomp like Perl operator in Ruby 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: use strict; use warnings; my $str1 = "Hello\n"; my $str2 = "World"; print $str1.$str2; print "\n"; chomp($str1); print $str1.$str2; print "\n"; Any clue? -- Posted via http://www.ruby-forum.com/.