Paul Brannan <pbrannan / atdesk.com> writes: > On Wed, Jan 15, 2003 at 02:31:22AM +0900, Kazuo Saito wrote: [...] > I like the idea of being able to indent my here documents. I'm not > convinced that the proposed solution is the best solution, though. > > Note that the perl community has already given this problem much > thought: > http://dev.perl.org/rfc/162.html > > From what I can gather, the proposed perl solution would look like > this in Ruby: > > p <<<EOS > foo > bar > EOS > #=> " foo\n bar\n" > > (that is, strip any leading whitespace that is indented the same as > the terminator). I do not like this simply because it introduces a problem of tabs -vs- spaces.