From: George Moschovitis Date: 2004-09-14T17:29:53+09:00 Subject: Catching undefined global variable errors Hello everyone, have a look the following surprising code: $the_key = "ley1" # a common orthographic error a = { "key1" => 1, "key2" => 2} unless a[$the_key] # ruby doesnt catch this error puts "SURPRISE!!" end Is there a way to catch such orthographic errors (and save valueable debugging time)? I expected that the interpreter would raise an Exception (undefined global or something) for this code. best regards, George Moschovitis