in reply to Re^2: How do I test the validity of a CODE reference?
in thread How do I test the validity of a CODE reference?

Not quite. can is meant for methods, so it obeys inheritance.