devel/p5-Scope-Guard 0.21 MidnightBSD
Lexically scoped resource management
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- artistic, gpl+
- Categories
- devel, perl5
Description
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 info, see: http://www.drdobbs.com/cpp/184403758
In the other systems
The newest version among them is 0.21, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/p5-Scope-Guard | 0.21 newest | no data | - | [email protected] | - |
| FreeBSD | devel/p5-Scope-Guard | 0.21 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-Scope-Guard | 0.21p0 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/p5-Scope-Guard | 0.21nb11 newest | none known | - | [email protected] | 2026-07-16 |
| DragonFly | devel/p5-Scope-Guard | 0.21 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Scope-Guard | 0.21 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Scope-Guard | 0.21 newest | no data | - | [email protected] | - |
Install
Binary package:
mport install p5-Scope-Guard
From mports:
cd /usr/mports/devel/p5-Scope-Guard && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Scope-Guard>0:devel/p5-Scope-Guard
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Scope/Guard.pm
- %%PERL5_MAN3%%/Scope::Guard.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Scope-Guard-0.21.tar.gz | 4377 | 8c9b1bea5c56448e2c3fadc65d05be9e4690a3823a80f39d2f10fdd8f777d278 |
Master sites 1
- CPAN