Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: How can I tell if a function has been forward declared but not yet defined?by ihb (Deacon) |
on Mar 30, 2005 at 21:36 UTC ( [id://443614]=note: print w/replies, xml ) | Need Help?? |
The subroutine &hello doesn't exist. In fact $::{hello} is &hello's prototype (as a plain string). There's no CV or CV-ish value around yet--just a plain string being the prototype. When you do *hello, \&hello or $hello you create the glob at comile-time and so $::{hello} returns a glob. This means that works. See Re^3: Grabbing Variable Names for an elaboration. ihb
See perltoc if you don't know which perldoc to read!
In Section
Seekers of Perl Wisdom
|
|