On 25/04/07, David Nicol <davidnicol@gmail.com> wrote: > I know that Perl maintains a list of things to do on scope exit, which is > where C<local>ized variables get reassigned to their original values, and > possibly other things as well. How tricky would it be to provide perl-side > access to that list, in the form of, say @^TTD_ON_SCOPE_EXIT, > or in the form of a twelfth result from C<caller> -- although caller works > at the granularity of stack frames rather than scopes, so something similar > that works with lexical scopes, and enclosers of lexical scopes, would make > more sense. C<encloser> perhaps? You mean add Hook::Scope to the core ? (I haven't tested it with blead, but since it's ridiculously simple, I think it should.)Thread Previous | Thread Next