From: Robert Klemme Date: 2005-08-12T17:01:11+09:00 Subject: Re: How do I use heredocs hsun wrote: > Hello Ezra, > > Thanks, it works now. maybe I should trun the EOL mark on from now on. Having the editor remove trailing white space automatically when saving is a good idea. This feature is present in almost every serious editor. robert > > > 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 >>>> >>>>