IO-Null
view release on metacpan or search on metacpan
Note that this, however:
use IO::Null;
$^W = 1;
my $fh = IO::Null->new;
$fh->print("Lalalalala!\n"); # does nothing.
$fh->close();
emits no warnings.
* I don't know if you can successfully untaint a null
filehandle.
* This:
$null_fh->fileno
will return a defined and nonzero number, but one you're not
likely to want to use for anything. See the source.
* These docs are longer than the source itself. Read the
source!
COPYRIGHT
Copyright (c) 2000 Sean M. Burke. All rights reserved.
This library is free software; you can redistribute it
and/or modify it under the same terms as Perl itself.
AUTHOR
Sean M. Burke sburke@cpan.org
[end POD excerpt]
PREREQUISITES
This suite requires Perl 5; I've only used it under Perl 5.004, so for
anything lower, you're on your own.
IO::Null doesn't use any nonstandard modules.
INSTALLATION
You install IO::Null, as you would install any perl module
library, by running these commands:
perl Makefile.PL
make
make test
make install
If you want to install a private copy of IO::Null in your home
directory, then you should try to produce the initial Makefile with
something like this command:
perl Makefile.PL LIB=~/perl
Then you may need something like
setenv PERLLIB "$HOME/perl"
in your shell initialization file (e.g., ~/.cshrc).
DOCUMENTATION
POD-format documentation is included in Null.pm. POD is readable
with the 'perldoc' utility. See ChangeLog for recent changes.
MACPERL INSTALLATION NOTES
Don't bother with the makefiles. Just make an IO directory in your
MacPerl site_lib or lib directory, and move Null.pm into there.
SUPPORT
Questions, bug reports, useful code bits, and suggestions for
IO::Null should just be sent to me at sburke@cpan.org
AVAILABILITY
The latest version of IO::Null is available from the
Comprehensive Perl Archive Network (CPAN). Visit
<http://www.perl.com/CPAN/> to find a CPAN site near you.
( run in 1.424 second using v1.01-cache-2.11-cpan-39bf76dae61 )