Or simpler: only put "require 'rubygems'" at the top of scripts which 
use rubygems.

(Obviously less convenient than using RUBYOPT of course, but your script 
may be more portable)
-- 
Posted via http://www.ruby-forum.com/.