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?

%:: is the namespace for the main package and what I'm doing with $::{'hello'} is to get the glob of things pointed at by the name 'hello.' For example, do this and you'll see what I mean:
sub hello { }; # declared and defined *fn = $::{'hello'}; print "declared\n" if *fn{CODE}; print "defined\n" if defined &fn;
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.
  • Comment on Re^2: How can I tell if a function has been forward declared but not yet defined?
  • Download Code