in reply to Re^2: static storage in a local subroutine?
in thread static storage in a local subroutine?
But my intuition (which is apparently incorrect) says that sub get_count is redefined each time executing this blockNo, named subs are only created once, during compilation. Anonymous subs are created each time you ask for one to be created. The lexical capture happens at creation time.
Dave.
|
|---|