From: Dave Aronson Date: 2012-02-02T00:44:10+09:00 Subject: Re: why we need heredoc On Wed, Feb 1, 2012 at 02:31, Florian Gilcher wrote: > Also, the stop word has to be at the beginning of a line. > > <<-HERE > test HERE > HERE > => "test HERE\n" Not *quite*. If you left out the dash, it would have to be at the beginning. With the dash, however, you can at least indent the endword. (You can even indent the whole thing, and then trim off the indentation at the start of each line. See Sven Schwyn's blog entry at http://www.bitcetera.com/en/techblog/2009/07/02/heredoc-with-indent-in-ruby/.) It still has to be the first *non-whitespace* on the line though. -Dave -- Dave Aronson:  Available Cleared Ruby on Rails Freelancer (NoVa/DC/Remote) -- see www.DaveAronson.com, and blogs at www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.com