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


in reply to Perl closures: internal details.(Updated)

This reference may be a little light on "guts" but is excellent on explanation. Pages 73 through 80 in Higher Order Perl paint a pretty clear picture.


Dave

Replies are listed 'Best First'.
Re^2: Perl closures: internal details.
by Anonymous Monk on Apr 12, 2012 at 09:47 UTC
Re^2: Perl closures: internal details.
by BrowserUk (Patriarch) on Apr 12, 2012 at 09:42 UTC
    a little light on "guts"

    I don't mean to be rude, but I specifically asked about "articles that explain the internal implementation?. Ie "the guts".


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      Well, it does both :) the pad (lexpad, lexical pad) is attached to the CV ( Code Value, subroutine ), each scope creates a new pad ... maybe that is not gutsy enough, but http://search.cpan.org/dist/illguts/index.html elaborates more on the structure of the guts -- or were you looking for something different?

        Thanks. That version has moved on considerably to the version I have had bookmarked;

        It is still a little light on words, but the picture's probably worth its thousand.

        I guess I need to look again at B & PadWalker. I've steadfastly refused to look at these seriously till now.

        I did take a peek under their bonnets and was discretely valorous in my conclusion that I didn't need to know. I guess that changed :(


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

        The start of some sanity?