From: ts Date: 2001-08-01T17:40:48+09:00 Subject: [ruby-talk:18948] Re: Testing a global variable... >>>>> "S" == Sean Chittenden writes: S> Granted it won't work in such a small scope, but this is S> actually for mod_ruby where the variable may or may not be set (1st S> request of process). Any thoughts on how to get the snippet above S> working? defined? didn't seem to work either... -sc ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ??? pigeon% ruby -e 'puts "not defined" unless defined? $testing' not defined pigeon% pigeon% ruby -e '$testing = nil; puts "not defined" unless defined? $testing' pigeon% Guy Decoux