From: Joel VanderWerf Date: 2003-01-16T01:18:34+09:00 Subject: Re: ruby-dev summary 19198-19345 Dave Thomas wrote: > Matt Armstrong wrote: > >> I just though, why not "<<|FOO". In other words, the '-' in there >> doesn't serve much purpose. >> >> s = <<|FOO >> |this >> | is >> | my >> | text >> FOO >> >> > > In fact, neither does the 'FOO' > > s = <<|Now is the time > | For all good men > | to code Ruby > p s.length > > So any line that _doesn't_ start with the given delimiter (ignoring > leading whitespace) ends the string. Of course, then you lose being able to use FOO in an expression irb(main):001:0> s = <