autodie::Scope::Guard(3p) Perl Programmers Reference Guide
autodie::Scope::Guard(3p) Perl Programmers Reference Guide # autodie::Scope::Guard(3p) Perl Programmers Reference Guide NNAAMMEE # autodie::Scope::Guard - Wrapper class for calling subs at end of scope SSYYNNOOPPSSIISS # use autodie::Scope::Guard; $^H{'my-key'} = autodie::Scope::Guard->new(sub { print "Hallo world\n"; }); DDEESSCCRRIIPPTTIIOONN # This class is used to bless perl subs so that they are invoked when they are destroyed. This is mostly useful for ensuring the code is invoked at end of scope. This module is not a part of autodie's public API. ...