From: "Mark J.Reed" Date: 2005-08-12T05:41:11+09:00 Subject: Re: How do I use heredocs Your program is failing because you have 12 spaces after the "EOS". You can't have anything on the line after the here-document terminator, not even whitespace. hsun writes: >Hi, >I have a simple test program. >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >class QuickTest > =20 > def testMe > str =3D < Some Application data >EOS =20 > puts str > end =20 > =20 >end >if $0 =3D=3D __FILE__ then > $test =3D QuickTest.new > $test.testMe >end =20 >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D >I got this error and could not figure out what's wrong? >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >QuickTest.rb:21: can't find string "EOS" anywhere before EOF >QuickTest.rb:6: syntax error >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >Can someone help? >I am running Ruby 1.8 on Windows XP >Thanks