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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: accessing stashes
by choroba (Cardinal) on Mar 01, 2019 at 17:11 UTC | |
by ikegami (Patriarch) on Mar 01, 2019 at 19:12 UTC | |
by morgon (Priest) on Mar 01, 2019 at 18:45 UTC | |
by ikegami (Patriarch) on Mar 01, 2019 at 19:14 UTC | |
by ikegami (Patriarch) on Mar 01, 2019 at 19:52 UTC | |
by morgon (Priest) on Mar 01, 2019 at 19:25 UTC | |
by ikegami (Patriarch) on Mar 01, 2019 at 19:28 UTC | |
| |
Re: accessing stashes
by NetWallah (Canon) on Mar 01, 2019 at 17:28 UTC | |
by choroba (Cardinal) on Mar 01, 2019 at 17:42 UTC | |
by ikegami (Patriarch) on Mar 01, 2019 at 19:57 UTC |
Back to
Seekers of Perl Wisdom