On Thu, Feb 01, 2007 at 01:45:15AM +0900, Rob Sanheim wrote:

> Any ideas?

I tend to do:

#!/usr/bin/env ruby
BEGIN {$VERBOSE = true}

as I think that's the best you can do within a single script.  If the
link referenced in another reply is correct, then warnings won't be
emitted as the script initially loads.  However, doing a manual "ruby -w
foo_script.rb" once to test the code should catch any of these warnings.