From: ts Date: 2004-12-17T02:45:48+09:00 Subject: Re: Testing global variables for existence? >>>>> "H" == Hadmut Danisch writes: H> How do I test whether the variable has been set without causing H> ruby -w to print a warning in case it has not been set? With defined? uln% ruby -we '$a = 12 unless defined?($a); p $a' 12 uln% Guy Decoux