The stupid question is the question not asked | |
PerlMonks |
CORE::GLOBAL magic?by morgon (Priest) |
on Jun 02, 2018 at 01:53 UTC ( [id://1215713]=perlquestion: print w/replies, xml ) | Need Help?? |
morgon has asked for the wisdom of the Perl Monks concerning the following question:
Hi, can someone explain to me what is happening in CORE::GLOBAL for mere curiosity... If I do e.g. it seems CORE::GLOBAL::sleep is a code-ref, yet I cannot call it directly. Even weirder is so it seems every arbitary code-slot in CORE::GLOBAL is (virtually) filled with the same code-ref that probably points to some interception logic but I am surprised that there are code-refs that cannot be called... I am aware that CORE::GLOBAL is for allowing built-ins to be redefined but this surprises me... Can anybody with some knowlege of the internals shed some light on this? Many thanks!
Back to
Seekers of Perl Wisdom
|
|