devel/p5-IO-Null 1.01nb18 NetBSD
Perl module for null filehandles
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- Categories
- devel, perl5
- Package size
- 6.7 KiB, 8.5 KiB installed
Description
This is a class for null file handles. Calling a constructor of this class always succeeds, returning a new null file handle. Writing to any object of this class is always a no-operation, and returns true. Reading from any object of this class is always no-operation, and returns empty-string or empty-list, as appropriate.
You could say: open(NULL, '>/dev/null') || die "WHAAT?! $!"; and get a null FH that way. But not everyone is using an OS that has a /dev/null
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/p5-IO-Null | 1.01nb18 |
| FreeBSD | devel/p5-IO-Null | 1.01_1 |
| DragonFly | devel/p5-IO-Null | 1.01_1 |
| HardenedBSD | devel/p5-IO-Null | 1.01_1 |
| GhostBSD | devel/p5-IO-Null | 1.01_1 |
Install
Binary package:
pkgin install p5-IO-Null
From pkgsrc:
cd /usr/pkgsrc/devel/p5-IO-Null && 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 | 1.01nb18 |
| NetBSD 10.1 aarch64 | 1.01nb17 |
| SmartOS / illumos x86_64 | 1.01nb18 |
| macOS 15 arm64 | 1.01nb18 |
Dependencies
Run dependencies 1
No port depends on this one.