in reply to Re: How can I tell if a function has been forward declared but not yet defined?
in thread How can I tell if a function has been forward declared but not yet defined?
So I know the technique works - I just need a way to differentiate functions that are only forward declared from ones that are actually defined.sub hello { }; # declared and defined *fn = $::{'hello'}; print "declared\n" if *fn{CODE}; print "defined\n" if defined &fn;
|
|---|