From: Robert Klemme Date: 2009-05-18T15:35:55+09:00 Subject: Re: File.write a long line 2009/5/17 Mk 27 : > Bertram Scharpf wrote: > >> Maybe here documents? > > No, just to save a little bit of typing a line with a bunch of long > object.hash[key] variables in it.  But since the logic must applies to > other methods, I figured I might as well start "saving" now. > > Anyway, it seems the + version works but the / ignores the next line if > the quotes are closed. Note that for the continuation you need a bachslash "\" and not a forward slash "/"! The difference between the two variants is that the continuation forms one long string while the plus version creates several strings which are combined at runtime. It seems that in your case the version with "+" may be better as you seem to pull your strings from somewhere else (i.e. they are not constant). Can you show the real code? Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/