I notice that the debugger's "x" command seems to know how to do this so I dug a bit and found Devel::Peek::CvGV(), which will fail if your ref is to a sub that doesn't exist.
- tye (but my friends call me "Tye")In reply to Re: Validating a Code Reference
by tye
in thread Validating a Code Reference
by davorg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |