From: Ronald Fischer Date: 2007-09-04T19:02:36+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 > > Because that's equivalent to STDOUT "bla", not STDOUT << "bla". > The << in your code is part of the heredoc syntax. You want > STDOUT << <<-END > line 1 > line 2 > END Of course, that's it!!! I must have been blind! Thanks a lot. Ronald