From: gabriele renzi Date: 2005-01-18T05:26:11+09:00 Subject: Re: is defined? fast? Robert Klemme ha scritto: > "George Moschovitis" schrieb im Newsbeitrag > news:1105968115.995603.227690@f14g2000cwb.googlegroups.com... > >>Hello everyone, I have a simple question: >> >>is 'if defined?(MyFlag)' as fast as 'if $my_flag' >>or is it much slower? >> >>Any information will be appreciated. > > > You cannot compare them as both have different functionality: defined? > checks whether a var is defined while the other test uses the var value. > I think he's wondering if writing stuff like conditionalstuff if defined? foo vs foo=bar conditionalstuff if foo