in reply to Re: eval in perl package (updated getter %exported_lex) )
in thread [SOLVED]: eval in perl package

Hi Rolf

with 'natively' I meant that I use variable &myscalar explicitely and not just indirectly in the eval statement. When reading all comments I suppose the correct wording would be "in lexical context"

Thanks to all for explanation and background information.

Cheers Marcus

  • Comment on Re^2: eval in perl package (updated getter %exported_lex) )

Replies are listed 'Best First'.
Re^3: eval in perl package (updated getter %exported_lex) )
by LanX (Saint) on Mar 01, 2018 at 16:18 UTC
    Hello Marcus,

    Welcome to the monastery!

    And your code is an excellent example to demonstrate how closures internally work.

    Thanks! :)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Wikisyntax for the Monastery