From: david@... Date: 2005-08-13T01:34:56+09:00 Subject: Re: Array redefinition problem Cit�t Leslie Viljoen : > /var/www/ruby/core.rb:22:in `num_rows': undefined local variable or > method `length' for #<#::Array:0xb65e2c78> (NameError) Ah wait, it seems whatever is running the web script is doing some voodoo with namespaces - the global namespace isn't what it's supposed to be, in which case not even the aliasing would work properly. I'm possibly summoning the Daemon Obfuscatis here, but this should work no matter what: [].class.class_eval { alias_method(:num_rows, :length) } Feel free to confuse yourself by using module_eval, or define_method. David Vallner