From: Pen Ttt Date: 2010-03-24T10:48:34+09:00 Subject: Re: what's the matter with my programm:Web Analysis there two bugs in my first program : 1、it's __END__ not _END_ 2、it's "elsif" not "elseif" i change my program into #the filename is: /home/pt/htmlscan_test.rb HTMLRegexp =/( there is another problem too: it can be run on netbeans ide6.8,got correct answer ["Tag", ""] ["Tag", ""] ["Tag", ""] ["Tag", "< A name=\"FOO\" href=\"foo\" attr >"] ["TextData", "foo"] ["Tag", ""] ["Tag", "< A name=\"BAR\" href=\"bar\" attr >"] ["TextData", "bar"] ["Tag", ""] ["Tag", "< A name=BAZ href=baz attr >"] ["TextData", "baz"] ["Tag", ""] ["Comment", ""] ["Tag", ""] ["Tag", ""] but when i run it on terminal pt@pt-laptop:~$ ruby /home/pt/htmlscan_test.rb /home/pt/htmlscan_test.rb:20: syntax error, unexpected '<', expecting $end ^ what's the matter? can you try it on your computer? please help me. -- Posted via http://www.ruby-forum.com/.