From: fabsy Date: 2006-08-19T07:05:04+09:00 Subject: Re: hpricot phrogz@gmail.com skrev: > fabsy wrote: > > I just pasted: > > > > require 'rubygems' > > require 'hpricot' > > require 'open-uri' > > > > doc = Hpricot(open("http://qwantz.com/")) > > (doc/"p/a/img").each do |img| > > puts img.attributes['class'] > > end > > > > into a file and tried to run it.. It gave me the > > "hej.rb:1: parse error, unexpected tIDENTIFIER, expecting $ > > require 'open-uri'" > > Smells like you've got a line-endings problem. Aah! I got a new texteditor and it works like a charm! Thank you guys..