Egg::Util::STDIO - Module to use IO::Scalar easily.


Egg-Release documentation  | view source Contained in the Egg-Release distribution.

Index


NAME

Top

Egg::Util::STDIO - Module to use IO::Scalar easily.

SYNOPSIS

Top

  use Egg::Util::STDIO;

  my $res= Egg::Util::STDIO->out(0, sub {
        print "Hellow";
     });

  print $res->result;

DESCRIPTION

Top

IO::Scalar It is a module to use it for easy.

METHODS

Top

out ([CONTEXT], [CODE_REF])

STDOUT is obtained and the Egg::Util::STDIO::result object is returned.

It is not especially necessary though the thing that the object of the project is passed is assumed to CONTEXT.

CODE_REF is always necessary.

in ([CONTEXT], [CODE_REF])

STDIN is obtained and the Egg::Util::STDIO::result object is returned.

It is not especially necessary though the thing that the object of the project is passed is assumed to CONTEXT.

CODE_REF is always necessary.

RESULT METHODS

Top

new

Constructor.

result

The obtained data is returned.

error

When the error occurs, the message is returned.

SEE ALSO

Top

Egg::Release, IO::Scalar, Class::Accessor::Fast,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release documentation  | view source Contained in the Egg-Release distribution.