On Wed, Feb 1, 2012 at 02:31, Florian Gilcher <flo / andersground.net> 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