in reply to Should calling 'exists' create a hash key?
Obviously, if you need to do this sort of thing a lot, with arbitrarily deep structures, using the module will make your coding a lot easier and cleaner.if ( exists( $$x{fred} )) { print "fred defined\n"; print "dave defined\n" if ( exists( $$x{fred}{dave} )); }
|
|---|