NAME

ETL::Yertl::LineStream - Read/write I/O streams in lines

VERSION

version 0.044

SYNOPSIS

use ETL::Yertl;
use ETL::Yertl::LineStream;
use IO::Async::Loop;

my $loop = IO::Async::Loop->new;
my $input = ETL::Yertl::LineStream->new(
    read_handle => \*STDIN,
    on_line => sub {
        my ( $self, $doc, $eof ) = @_;

        # ... do something with $doc

        if ( $eof ) {
            $loop->stop;
        }
    },
);

$loop->add( $input );
$loop->run;

DESCRIPTION

This is an unformatted I/O stream. Use this to write simple scalars to the output or to read lines from the input.

SEE ALSO

ETL::Yertl

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Doug Bell.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.