--- Guard/README 2010/03/12 17:25:58 1.6 +++ Guard/README 2011/07/02 00:38:44 1.7 @@ -32,6 +32,7 @@ default. scope_guard BLOCK + scope_guard ($coderef) Registers a block that is executed when the current scope (block, function, method, eval etc.) is exited. @@ -79,6 +80,7 @@ } my $guard = guard BLOCK + my $guard = guard ($coderef) Behaves the same as "scope_guard", except that instead of executing the block on scope exit, it returns an object whose lifetime determines when the BLOCK gets executed: when the last reference to @@ -161,10 +163,14 @@ solution to the problem of exceptions. SEE ALSO - Scope::Guard and Sub::ScopeFinalizer, which actually implement dynamic - guards only, not scoped guards, and have a lot higher CPU, memory and + Scope::Guard and Sub::ScopeFinalizer, which actually implement + dynamically scoped guards only, not the lexically scoped guards that + their documentation promises, and have a lot higher CPU, memory and typing overhead. Hook::Scope, which has apparently never been finished and can corrupt memory when used. + Scope::Guard seems to have a big SEE ALSO section for even more modules + like it. +