in reply to Re^6: Debugger and lexicals
in thread Debugger and lexicals

Its attached to the scratchpad of the CV that is created by compiling Foo. After Foo is executed, that CV and its scratchpad are freed, and $a gets freed at that point since there aren't any other references to it.

Dave.