IO::Moose::Handle is a reimplementation of IO::Handle, with improvements.
SYNOPSIS
use IO::Moose::Handle;
$fh = IO::Moose::Handle->new;
$fh->fdopen( fileno(STDIN) );
print $fh->getline;
$file = $fh->slurp;
$fh->close;
$fh = IO::Moose::Handle->fdopen( *STDERR, '>' );
$fh->autoflush(1);
$fh->say('Some text');
undef $fh; # calls close at DESTROY
This class provides an interface mostly compatible with IO::Handle. The differences:
* It is based on Moose object framework.
* It uses Exception::Base for signaling errors. Most of methods are throwing exception on failure.
* The modifiers like input_record_separator are supported on per-filehandler basis.
* It also implements additional methods like say, slurp.
* It is pure-Perl implementation.
Product's homepage
Requirements:
· Perl