linda w twaxvptwszvtlinxorg rafael garciasuarez wrote linda w wrote im firmly opinion foo return undef execution time foo defined ie foo doesnt exist function exist undefined perl wle sub fooprint defined foo print exists foo 1 appears foo autovivifies foo like forward declaration would grrrr admit may dont agree see usefulness autovivification function fraught danger overly dramatic times pah also reason function evaluates true foo evaluates coderef foo name valid method return false fact coderef exists doesnt indicate function defined thats difference defined exists may stating true isnt documented true respect function perltoot method called object class reports back whether string argument callable method name class fact gives back function reference method his_print_method objcanas_string returns true value callable function reference method return defined correct sense value one core problems dont think thats problem thats would expect actually expect code entirely symmetric data id agree dont see way makes logical sense able autovivify empty variable container youve created empty bucket memory store value doesnt seem true code av variable works ab a1 print b print 1 coderefs symmetric varrefs shouldnt following work af sub anon print f error function ref using correct symmetric syntax whole problem bit complex perl compiler binds function names coderefs compile time might changed runtime yesi recognize said undef referenced executionrun time vs compile kind situation perl le sub foodelete fooprint exists fooprint b eval qexists foo 1 b autovivification foo foo occurs compiletime sub foo might get compiled could example imported later require behaviour actually difficult change suspected wouldnt easy fix seems like assigning value undef coderef would lastresort action perhaps ie currently function undefined perl attempt autoload yes currently fails get fatal error currently try call undefined function tries autoload case seems _might_ wanted return undef one tries obtain value undefined functionbut im sure would affect things sigh linda wed 06 aug 2008 211706 0700 broken ooparentmethod call