F
fabsy
Hey.. I just installed hpricot but it acts strange..
I tried an example from
http://code.whytheluckystiff.net/hpricot/wiki/HpricotBasics but it
didn't work.. It just gave me "test.rb:1: parse error, unexpected
tIDENTIFIER, expecting $"...
After that i tried ruby -ropen-uri -e
'eval(open("http://balloon.hobix.com/hpricot").read)' and it launched
the script on that page without any problems..
I tried to copy that script and pasted it into my texteditor to just
try to launch it but it gave me the :
"test.rb:1: parse error, unexpected tIDENTIFIER, expecting $
puts "You may use XPath (//span[@class='entryPermalink']) or CSS
selectors (spanendlements.each { |ele| pp ele } }t? [h/I]? "ts found."
What does that mean? And why doesn't it work? I followed the steps from
:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger
I tried an example from
http://code.whytheluckystiff.net/hpricot/wiki/HpricotBasics but it
didn't work.. It just gave me "test.rb:1: parse error, unexpected
tIDENTIFIER, expecting $"...
After that i tried ruby -ropen-uri -e
'eval(open("http://balloon.hobix.com/hpricot").read)' and it launched
the script on that page without any problems..
I tried to copy that script and pasted it into my texteditor to just
try to launch it but it gave me the :
"test.rb:1: parse error, unexpected tIDENTIFIER, expecting $
puts "You may use XPath (//span[@class='entryPermalink']) or CSS
selectors (spanendlements.each { |ele| pp ele } }t? [h/I]? "ts found."
What does that mean? And why doesn't it work? I followed the steps from
:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger