NAME

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

SYNOPSIS

use Egg::Util::STDIO;

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

print $res->result;

DESCRIPTION

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

METHODS

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

new

Constructor.

result

The obtained data is returned.

error

When the error occurs, the message is returned.

SEE ALSO

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

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.