in reply to Validating a Code Reference

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")