
Scope::guard is a perl module that provides a convenient way to perform cleanup or other forms of resource management at the end of a scope. it is particularly useful when dealing with exceptions.
for more information, see: <url:http://www.drdobbs.com/cpp/184403758>