XP is just a number | |
PerlMonks |
accessing stashesby morgon (Priest) |
on Mar 01, 2019 at 16:57 UTC ( [id://1230721]=perlquestion: print w/replies, xml ) | Need Help?? |
morgon has asked for the wisdom of the Perl Monks concerning the following question:
Hi I knew this once, but I cannot remember the details and I am too stupid to find it online, so I hope for some feedback here... I know that the symbol-table for package main is %{main::}. The symbol-table has an entry for each symbol that points to a stash which has slots for the different variable types (SCALAR, CODE etc) What is the syntax to find out whether a symbol has a code-reference in that symbol's stash? Many thanks!
Back to
Seekers of Perl Wisdom
|
|