From: Jim Freeze Date: 2001-02-09T22:19:42+09:00 Subject: [ruby-talk:10624] Re: Are """ here documents here to stay? :-) > > > puts """ > > > Ok, Guy but this sure looks very much > > > like what you can acheive with here documents! > > > """ > > > > > > puts <<-HERE > > > Dont, you agree or am I missing something? > > > HERE > > > > > > puts " > > > > But isn't what you're doing also achieved by using > > one set of double quotes? > > > > " > > > Yeah, you're right. Sorry for wasting bandwith. I saw this in someone > else's code and thought it was a new way to specify here docs. I now see > that there is a small difference. When using double quotes you get an > extra newline before the first line. > I get the following: irb(main):020:0> puts """ irb(main):021:0" "this is a test" irb(main):022:0" """ SyntaxError: compile error (irb):21: parse error "this is a test" ^ (irb):21:in `irb_binding' irb(main):023:0> puts <