in reply to Re^9: "my" declaration problem
in thread "my" declaration problem

I think this works because lexical variables are only cleaned up at the end of their scope, as every lexical variable ends up in the CvPADLIST structure (cf. pad.c and perlintern where I found this). The CvPADLIST is an array and not a hash, as far as I understand it.

Please provide an example where the code is not broken.

I showed what you requested, an example where the code is demonstrably not broken.

Replies are listed 'Best First'.
Re^11: "my" declaration problem
by LanX (Saint) on Apr 25, 2017 at 21:34 UTC
    > an example where the code is demonstrably not broken.

    yes you did, thank you!

    But my opinion holds, for me this depends too much on implementation details.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      You are always entitled to your opinion. ENJOY! :D