From: Sebastian Hungerecker Date: 2007-09-04T18:53:29+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 HTH, Sebastian -- NP: Ulver - Lost In Moments Jabber: sepp2k@jabber.org ICQ: 205544826