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
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/p5-WeakRef | 0.01p6 |
| FreeBSD | devel/p5-WeakRef | 0.01_1 |
| NetBSD | devel/p5-WeakRef | 0.01nb20 |
| DragonFly | devel/p5-WeakRef | 0.01_1 |
| HardenedBSD | devel/p5-WeakRef | 0.01_1 |
| GhostBSD | devel/p5-WeakRef | 0.01_1 |
Install
Binary package:
pkg_add p5-WeakRef
From the ports tree:
cd /usr/ports/devel/p5-WeakRef && make install