>>>>> "A" == =?iso-8859-1?Q?Aleksi Niemel=E4?= <iso-8859-1> 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