OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

p5-Guard-1.023p0

scope guards, lighter alternative

Back to search · Project homepage

Description

This module implements so-called "guards". A guard is something (usually an object) that "guards" a resource, ensuring that it is cleaned up when expected. It is similar to eval {} blocks, except it's faster, and catches everything, including direct calls to exit and the like. Prerequisite to Coro. Different from Scope::Guard and Sub::ScopeFinalizer, which actually implement dynamic, not scoped guards, and have a lot higher CPU, memory and typing overhead.

Package information

Ports path
devel/p5-Guard
Package architecture
amd64
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel, perl5
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

None listed in sqlports.

Used by (4 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON