From: Sam Roberts Date: 2004-03-17T11:50:05+09:00 Subject: Re: why use heredoc in doublequotes? I don't really understand what you're squeezing is supposed to show, the double quote is for symetry with the single quote, AFAICT: irb(main):001:0> f="hi" "hi" irb(main):002:0> puts < puts <<'TEXT' irb(main):006:0' a #{f} irb(main):007:0' TEXT a #{f} nil Sam Quoteing neoneye@adslhome.dk, on Wed, Mar 17, 2004 at 04:44:33AM +0900: > When you can do like this: > > server> ruby a.rb > "im some text\n" > server> cat a.rb > str = < im soooome text > TEXT > p str > server> > > > What is the rationale for doing <<"TEXT" ? > > Have I misunderstood it? > > -- > Simon Strandgaard >