Mechanize problem

Hello,
I can’t run even the most trivial examples of Mechanize, neither on
Ubuntu nor in Leopard because I get the following error:

./mechanize.rb:4: uninitialized constant WWW (NameError)
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from google.rb:2

I have installed mechanize with all its dependencies.
Can anybody give me a hint about what’s wrong with my installation or
whatever am I doing wrong?
Thanks

r.

On Jan 2, 2008, at 22:20 , Ramiro Diaz Trepat wrote:

I can’t run even the most trivial examples of Mechanize, neither on
Ubuntu nor in Leopard because I get the following error:

./mechanize.rb:4: uninitialized constant WWW (NameError)

rename your script from mechanize.rb to something else. ‘.’ is in your
path so the require ‘mechanize’ you (should) have does nothing.

Bites us all now and then.

Thank you very much Ryan !
It was as silly as that… sorry.