in reply to Introspecting type informations?

HvNAME(SvSTASH(SvRV(ST(0))))

B:: does have SvSTASH

I tried with Inline::C but it keeps crashing with "my TYPE ... " but plain scalar returns "(null)"

  • Comment on Re: Introspecting type informations? HvNAME(SvSTASH(SvRV(ST(0))))

Replies are listed 'Best First'.
Re^2: Introspecting type informations? HvNAME(SvSTASH(SvRV(ST(0))))
by LanX (Saint) on Aug 04, 2019 at 11:34 UTC
    Thanks, probably you forgot to define TYPE.

    FYI you don't need inline C, B::Deparse is written in Perl and accessing all methods via the B:: backend.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Heh. Didnt forget diagnostics always reminds. Show the B code then.