BSD Ports

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

SystemPortVersion
NetBSDdevel/p5-IO-Null1.01nb18
FreeBSDdevel/p5-IO-Null1.01_1
DragonFlydevel/p5-IO-Null1.01_1
HardenedBSDdevel/p5-IO-Null1.01_1
GhostBSDdevel/p5-IO-Null1.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.

RepositoryVersion
NetBSD 10.1 x86_641.01nb18
NetBSD 10.1 aarch641.01nb17
SmartOS / illumos x86_641.01nb18
macOS 15 arm641.01nb18

Dependencies

Run dependencies 1

No port depends on this one.

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0