devel/p5-Tie-ToObject 0.03nb18 NetBSD
Tie to an existing object
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- Categories
- textproc, perl5
- Package size
- 5.8 KiB, 4.9 KiB installed
Description
While "tie" in perldoc allows tying to an arbitrary object, the class in question must support this in it's implementation of TIEHASH, TIEARRAY or whatever.
This class provides a very tie constructor that simply returns the object it was given as it's first argument.
This way side effects of calling $object->TIEHASH are avoided.
This is used in Data::Visitor in order to tie a variable to an already existing object. This is also useful for cloning, when you want to clone the internal state object instead of going through the tie interface for that variable.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/p5-Tie-ToObject | 0.03nb18 |
| FreeBSD | devel/p5-Tie-ToObject | 0.03_2 |
| OpenBSD | devel/p5-Tie-ToObject | 0.03p4 |
| DragonFly | devel/p5-Tie-ToObject | 0.03_2 |
| HardenedBSD | devel/p5-Tie-ToObject | 0.03_2 |
| GhostBSD | devel/p5-Tie-ToObject | 0.03_2 |
Install
Binary package:
pkgin install p5-Tie-ToObject
From pkgsrc:
cd /usr/pkgsrc/devel/p5-Tie-ToObject && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.03nb18 |
| NetBSD 10.1 aarch64 | 0.03nb17 |
| SmartOS / illumos x86_64 | 0.03nb18 |
| macOS 15 arm64 | 0.03nb18 |