From: Gavin Sinclair Date: 2004-09-14T22:23:34+09:00 Subject: Re: Catching undefined global variable errors On Tuesday, September 14, 2004, 10:59:53 PM, George wrote: > Thanks the $VEBOSE = true does the job! > however this exception should be raised by default (POLS anyone?) It's not an exception, so not only should it not be raised by default, it shouldn't be raised at all! It's a warning, which I agree should be enabled by default. What you probably want is to not use global variables. the_key = 'x' hash = { 'x' => 1, ... } hash[the_ley] # THIS will raise an exception Try reading one of the Ruby books to learn about different variable types. Gavin