From: hsun Date: 2005-08-12T07:08:02+09:00 Subject: Re: How do I use heredocs Hello Ezra, Thanks, it works now. maybe I should trun the EOL mark on from now on. Thanks for everyone that offered help > I opened you attachment and it bombed on me as well. But when I > selected the line afetr the terminating EOS I saw that you definitely > did have about 12 spaces after the EOS. I am attching your file back > and now it works. > HTH > -Ezra Zygmuntowicz > Yakima Herald-Republic > WebMaster > 509-577-7732 > ezra@yakima-herald.com > On Aug 11, 2005, at 2:19 PM, hsun wrote: > >> Hello David, >> >> The message messed up but I am sure that the EOS is on its own line >> by itself and I even checked with a HEX editor. Here is the file >> atached. >> >> The editor I use is Mondrain. >> >> Thanks >> >>> Hi -- >>> >>> On Fri, 12 Aug 2005, hsun wrote: >>> >>>> Hi, >>>> >>>> I have a simple test program. >>>> >>>> ==================== >>>> class QuickTest >>>> def testMe >>>> str = <>>> Some Application data >>>> EOS puts str >>>> end end >>>> if $0 == __FILE__ then >>>> $test = QuickTest.new >>>> $test.testMe >>>> end =========================== >>>> I got this error and could not figure out what's wrong? >>>> ============================================== >>>> QuickTest.rb:21: can't find string "EOS" anywhere before EOF >>> You need to put EOS on a line by itself. >>> >>> David >>> >>> >>>