BSD Ports

devel/p5-WeakRef 0.01p6 OpenBSD

API to the Perl weak references

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, perl5

Description

A weak reference is just like an ordinary Perl reference except that it isn't included in the reference count of the thing referred to. This means that once all references to a particular piece of data are weak, the piece of data is freed and all the weak references are set to undef. This is particularly useful for implementing circular data structures without memory leaks or caches of objects.

In the other systems

SystemPortVersion
OpenBSDdevel/p5-WeakRef0.01p6
FreeBSDdevel/p5-WeakRef0.01_1
NetBSDdevel/p5-WeakRef0.01nb20
DragonFlydevel/p5-WeakRef0.01_1
HardenedBSDdevel/p5-WeakRef0.01_1
GhostBSDdevel/p5-WeakRef0.01_1

Install

Binary package:

pkg_add p5-WeakRef

From the ports tree:

cd /usr/ports/devel/p5-WeakRef && make install

Dependencies

Required by 1