devel/p5-WeakRef 0.01_1 DragonFly
API to the Perl weak references
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- Categories
- devel, perl5
- Package size
- 5.8 KiB, 9.9 KiB installed
Description
A patch to Perl 5.005_55 by the author implements a core API for weak references. This module is a Perl-level interface to that API, allowing weak references to be created in Perl.
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 |
|---|---|---|
| DragonFly | devel/p5-WeakRef | 0.01_1 |
| FreeBSD | devel/p5-WeakRef | 0.01_1 |
| OpenBSD | devel/p5-WeakRef | 0.01p6 |
| NetBSD | devel/p5-WeakRef | 0.01nb20 |
| HardenedBSD | devel/p5-WeakRef | 0.01_1 |
| GhostBSD | devel/p5-WeakRef | 0.01_1 |
Install
Binary package:
pkg install p5-WeakRef
From DPorts:
cd /usr/dports/devel/p5-WeakRef && make install clean
Dependencies
Run dependencies 1
No port depends on this one.