Home

The devel/p5-Guard port

p5-Guard-1.023p0 – scope guards, lighter alternative (cvsweb github mirror)

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.
WWW: https://metacpan.org/release/Guard

Maintainer

The OpenBSD ports mailing-list

Categories

devel perl5

Files

Search