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
- Host: GitHub
- URL: https://github.com/chocolateboy/scope-guard
- Owner: chocolateboy
- License: artistic-2.0
- Created: 2010-06-09T15:09:32.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2022-04-19T16:49:56.000Z (about 3 years ago)
- Last Synced: 2025-04-15T06:43:24.491Z (2 months ago)
- Topics: cpan-module, destructor, destructors, perl-module, resource-management, scope, scope-guard, scoped, zero-dependency
- Language: Perl
- Homepage: https://metacpan.org/release/Scope-Guard
- Size: 31.3 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README
- Changelog: Changes
- License: LICENSE.md
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 installCOPYRIGHT 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.