morgon has asked for the wisdom of the Perl Monks concerning the following question:


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!