- or download this
if (SvROK(sv) && SvTYPE(sv) == SVt_PVCV)
warn("sv is a code reference (CV) alright.");
- or download this
if (SvROK(sv) && sv_derived_from(sv, "Foo"))
warn("sv isa Foo");
- or download this
if (gv_fetchmethod(gv_stashpv("Foo", 0), "Foo::bar"))
warn("succeeded in finding Foo::bar");