Hpricot problems

Has anyone successfully used Hpricot call multiple pages in the same
ruby script:

begin code

require ‘hpricot’
require ‘open-uri’

url = “http://ibm.com
N = 5

page = nil

for counter in (0…N)

puts counter.to_s() + "> checking " + url
page = Hpricot( open( url ) )


end code

I end up with the following error:

ruby test.rb
0> checking http://ibm.com
1> checking http://ibm.com
2> checking http://ibm.com
3> checking http://ibm.com
[BUG] Segmentation fault
ruby 1.8.2 (2004-12-25) [i386-mswin32]

This application has requested the Runtime to terminate it in an unusual
Please contact the application’s support team for more information.

Any pointers?