An open API service indexing awesome lists of open source software.

https://github.com/chocolateboy/scope-guard

Perform cleanup or other forms of resource management at the end of a scope
https://github.com/chocolateboy/scope-guard

cpan-module destructor destructors perl-module resource-management scope scope-guard scoped zero-dependency

Last synced: 2 months ago
JSON representation

Perform cleanup or other forms of resource management at the end of a scope

Awesome Lists containing this project

README

        

Scope-Guard version 0.21
========================

This module 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:
the Scope::Guard constructor takes a reference to a subroutine that is guaranteed to
be called even if the thread of execution is aborted prematurely. This effectively allows
lexically-scoped "promises" to be made that are automatically honoured by perl's garbage
collector.

For more information, see: https://www.drdobbs.com/cpp/184403758

INSTALLATION

To install this module, type the following:

perl Makefile.PL
make
make test
make install

COPYRIGHT AND LICENCE

Copyright (c) 2005-2021 by chocolateboy.

This is free software; you can redistribute it and/or modify it under the
terms of the Artistic License 2.0.