From: Robert Klemme Date: 2012-08-29T18:40:05+09:00 Subject: Re: Dir.mkdir appending question mark after directory name On Wed, Aug 29, 2012 at 11:33 AM, Joakim Langvand wrote: > Thanks, Robert! YWC. > That helped :) Good! > I suppose pname.chomp! would mean the same as pname = pname.chomp then. It has the same effects in your specific example. But effects will be different if there is another reference the object referred to by pname. In that case #chomp! and #chomp will behave differently because with exclamation mark you'll see the same object through both references but without and assignment you won't. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/