http://www.perlmonks.org?node_id=324047


in reply to Re: Handy Algorithm For Using B::Generate
in thread The B:: Modules

B::SPECIAL objects are instances of pointers to the perl global invariants, PL_sv_undef, PL_sv_yes, and PL_sv_no. You were seeing one of those.
  • Comment on Re: Re: Handy Algorithm For Using B::Generate

Replies are listed 'Best First'.
Re: Re: Re: Handy Algorithm For Using B::Generate
by stvn (Monsignor) on Jan 26, 2004 at 04:16 UTC

    You guys wouldn't happen to know how to fetch the scalar value associated with a B::GV object too would you?

    Looking at the results from Devel::Peek::Dump($a), it would seem to me that the GV -> GP -> SV would be the pathway to the SV (and its eventual value), but there is no GP method for the B::GV object. I am sure I am just missing something very obvious here, but I can't seem to resolve this. All I can seem to get when I call B::GV->SV is a B::NULL object, which makes no sense. Am I just running into the optimizer here?

    Okay, going to bed now with visions of op-code trees dancing in my head. Should make for some interesting dreams.

    -stvn
        diotalevi

        Excellend set of links, I especially like the PerlGuts illustrated (i'm a very visual person, so i like diagrams of data structures alot). Thanks much.

        - stvn