From: Killy Draw Date: 2007-09-04T19:00:16+09:00 Subject: Re: Syntaxerror with HERE document Ronald Fischer wrote: > Why does the following statement give syntax error "undefined method > `STDOUT'"? > > STDOUT <<-END > line 1 > line 2 > END > this means: tmp_str="line 1\nline 2\n"; STDOUT tmp_str; > After all, the following works: > > s=<<-END > line 1 > line 2 > END > STDOUT << s and this means: tmp_str="line 1\nline 2\n"; STDOUT<