Path to this page:
./
devel/p5-IO-Null,
Perl module for null filehandles
Branch: CURRENT,
Version: 1.01nb16,
Package name: p5-IO-Null-1.01nb16,
Maintainer: pkgsrc-usersThis 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
Required to run:[
lang/perl5]
Required to build:[
pkgtools/cwrappers]
Master sites: (Expand)
Filesize: 5.01 KB
Version history: (Expand)
- (2024-11-16) Updated to version: p5-IO-Null-1.01nb16
- (2023-07-06) Updated to version: p5-IO-Null-1.01nb15
- (2022-06-28) Updated to version: p5-IO-Null-1.01nb14
- (2021-05-25) Updated to version: p5-IO-Null-1.01nb13
- (2020-09-01) Updated to version: p5-IO-Null-1.01nb12
- (2019-08-11) Updated to version: p5-IO-Null-1.01nb11
CVS history: (Expand)