From: hsun Date: 2005-08-12T06:19:14+09:00 Subject: Re: How do I use heredocs ----++Omea_Parts_Splitter.102362861438823 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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=2e Here is the file atached=2e The editor I use is Mondrain=2e Thanks > Hi -- > > On Fri, 12 Aug 2005, hsun wrote: > >> Hi, >> >> I have a simple test program=2e >> >> =3d=3d=3d=3d=3d=3d=3d=3d=3d=3d=3d=3d=3d=3d=3d=3d=3d=3d=3d=3d >> class QuickTest >> def testMe >> str =3d <> Some Application data >> EOS puts str >> end end >> if $0 =3d=3d =5f=5fFILE=5f=5f then >> >> $test =3d QuickTest=2enew >> $test=2etestMe >> end =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=2erb:21: can't find string "EOS" anywhere before EOF > You need to put EOS on a line by itself=2e > > David > ----++Omea_Parts_Splitter.102362861438823 Content-Type: application/octet-stream; name="QuickTest.rb" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="QuickTest.rb" Y2xhc3MgUXVpY2tUZXN0DQogICAgDQogICAgZGVmIHRlc3RNZQ0KICAgICAg ICBzdHIgPSA8PEVPUw0KICAgIEFwcGxpY2F0aW9uIERhdGENCkVPUyAgICAg ICAgICAgIA0KICAgICAgICBwdXRzIHN0cg0KICAgIGVuZCAgICANCiAgDQpl bmQNCg0KaWYgJDAgPT0gX19GSUxFX18gdGhlbg0KDQogICAgJHRlc3QgPSBR dWlja1Rlc3QubmV3DQogICAgJHRlc3QudGVzdE1lDQplbmQgIA0K ----++Omea_Parts_Splitter.102362861438823--