BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/p5-Scope-Guard0.21 newestno data-[email protected]-
FreeBSDdevel/p5-Scope-Guard0.21 newestnone known-[email protected]-
OpenBSDdevel/p5-Scope-Guard0.21p0 newestno data-The OpenBSD ports mailing-list <[email protected]>-
NetBSDdevel/p5-Scope-Guard0.21nb11 newestnone known-[email protected]2026-07-16
DragonFlydevel/p5-Scope-Guard0.21 newestnone known-[email protected]-
HardenedBSDdevel/p5-Scope-Guard0.21 newestno data-[email protected]-
GhostBSDdevel/p5-Scope-Guard0.21 newestno data-[email protected]-

Compare across BSDs

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
FileSizeSHA256
Scope-Guard-0.21.tar.gz43778c9b1bea5c56448e2c3fadc65d05be9e4690a3823a80f39d2f10fdd8f777d278
Master sites 1
  • CPAN