From: ts Date: 2000-06-13T18:20:56+02:00 Subject: [ruby-talk:03373] Re: chomp! >>>>> "A" == =?iso-8859-1?Q?Aleksi Niemel=E4?= writes: A> c = ($_.dup.chop!).dup # should be about identical A> # to plain chop according to chop (i.e. the global function chop) modify $_ string.chop (i.e. the method of String) don't modify string pigeon% ruby -e '$_ = "abc"; chop; p $_' "ab" pigeon% ruby -e '$_ = "abc"; $_.chop; p $_' "abc" pigeon% This is a feature :-) Guy Decoux