summaryrefslogtreecommitdiff
path: root/devel/p5-IO-Null
diff options
context:
space:
mode:
Diffstat (limited to 'devel/p5-IO-Null')
-rw-r--r--devel/p5-IO-Null/DESCR10
-rw-r--r--devel/p5-IO-Null/Makefile17
-rw-r--r--devel/p5-IO-Null/PLIST1
-rw-r--r--devel/p5-IO-Null/distinfo4
4 files changed, 32 insertions, 0 deletions
diff --git a/devel/p5-IO-Null/DESCR b/devel/p5-IO-Null/DESCR
new file mode 100644
index 00000000000..5091b8b1b38
--- /dev/null
+++ b/devel/p5-IO-Null/DESCR
@@ -0,0 +1,10 @@
+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
diff --git a/devel/p5-IO-Null/Makefile b/devel/p5-IO-Null/Makefile
new file mode 100644
index 00000000000..d1bdb226e22
--- /dev/null
+++ b/devel/p5-IO-Null/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/12/14 00:19:24 cjep Exp $
+#
+
+DISTNAME= IO-Null-0.02
+PKGNAME= p5-${DISTNAME}
+SVR4_PKGNAME= p5inu
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=IO/}
+
+MAINTAINER= packages@netbsd.org
+COMMENT= Perl module for null filehandles
+
+USE_BUILDLINK2= YES
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/IO/Null/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-IO-Null/PLIST b/devel/p5-IO-Null/PLIST
new file mode 100644
index 00000000000..024e28538dc
--- /dev/null
+++ b/devel/p5-IO-Null/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/14 00:19:24 cjep Exp $
diff --git a/devel/p5-IO-Null/distinfo b/devel/p5-IO-Null/distinfo
new file mode 100644
index 00000000000..4bc6a47574c
--- /dev/null
+++ b/devel/p5-IO-Null/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/12/14 00:19:24 cjep Exp $
+
+SHA1 (IO-Null-0.02.tar.gz) = b23852a3009e36dbb502e0019ab47fef0ea6aa64
+Size (IO-Null-0.02.tar.gz) = 3894 bytes