http://qs321.pair.com?node_id=216546


in reply to Re: Dprof and main::BEGIN
in thread Dprof and main::BEGIN

broquaint many thanks for your response.

From the sounds of things, this effect is unavoidable. Just to clarify my understanding, is a CV an internal data structure? I seem to remember reading something in perlman:perlguts about two letter typedefs before I was scared away.

Regards,
Dom.

Replies are listed 'Best First'.
Re: Re: Re: Dprof and main::BEGIN
by broquaint (Abbot) on Nov 29, 2002 at 16:00 UTC
    Just to clarify my understanding, is a CV an internal data structure?
    A CV is an internal representation of a subroutine (see. Code Value). It's a typedef of a struct cv which has a pointer to a XPVCV which is a typedef for a struct xpvcv which can be found in cv.h in the perl source code. Simple as that ;)
    HTH

    _________
    broquaint

      Many thanks to broquaint and Elian for their answers. ++ to you both. I had a brief look at cv.h but the fear overcame me again.

      Regards,
      Dom

Re: Re: Re: Dprof and main::BEGIN
by Elian (Parson) on Nov 29, 2002 at 16:00 UTC
    CV is short for Code Value, and is one of perl's internal data types. (It's a sub-class of SV, the Scalar Value, if you can think of purely C code as subclassing anything :)