Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Scope::Guard;
    ...
       my $g = Scope::Guard->new(sub {$x; warn "destroyed"});
    }
    warn "end";
    
  2. or download this
    use strict;
    use Test::More tests=>2;
    ...
    }
    
    try();