autodie::Scope::GuardStack(3p) Perl Programmers Reference Guide
autodie::Scope::GuardStack(3p) Perl Programmers Reference Guide # autodie::Scope::GuardStack(3p) Perl Programmers Reference Guide NNAAMMEE # autodie::Scope::GuardStack - Hook stack for managing scopes via %^H SSYYNNOOPPSSIISS # use autodie::Scope::GuardStack; my $stack = autodie::Scope::GuardStack->new $^H{'my-key'} = $stack; $stack->push_hook(sub {}); DDEESSCCRRIIPPTTIIOONN # This class is a stack of hooks to be called in the right order as scopes go away. The stack is only useful when inserted into "%^H" and will pop hooks as their "scope" is popped. ...