ETL::Yertl::FormatStream - Read/write I/O stream with Yertl formatters
version 0.044
use ETL::Yertl; use ETL::Yertl::FormatStream; use ETL::Yertl::Format; use IO::Async::Loop; my $loop = IO::Async::Loop->new; my $format = ETL::Yertl::Format->get( "json" ); my $input = ETL::Yertl::FormatStream->new( read_handle => \*STDIN, format => $format, on_doc => sub { my ( $self, $doc, $eof ) = @_; # ... do something with $doc if ( $eof ) { $loop->stop; } }, ); $loop->add( $input ); $loop->run;
ETL::Yertl::Format
Doug Bell <preaction@cpan.org>
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.
To install ETL::Yertl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ETL::Yertl
CPAN shell
perl -MCPAN -e shell install ETL::Yertl
For more information on module installation, please visit the detailed CPAN module installation guide.