From: phrogz@... Date: 2006-08-19T05:10:05+09:00 Subject: Re: hpricot 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.