App::PipeFilter::Role::Reader::LineByLine - read input streams one line at a time
version 0.005
This is not a complete module.
package App::PipeFilter::MysqlToJson; use Moose; extends 'App::PipeFilter::Generic'; with qw( App::PipeFilter::Role::Reader::LineByLine App::PipeFilter::Role::Output::Json App::PipeFilter::Role::Transform::None ); ... implementation goes here .... 1;
App::PipeFilter::Role::Reader::LineByLine implements a read_input() method that returns one line of input at a time.
App::PipeFilter::Generic uses read_input() to consume data from its current input filehandle.
This role is recommended whenever the input data source or stream format are not easy to parse in chunks. Classes should consume App::PipeFilter::Role::Reader::Sysread when possible since it is often faster.
read_input() reads the next line from a FILEHANDLE and appends it to the buffer pointed at by a SCALAR_REF. It returns true if it read something, or false if it reached the end of file.
You may read this module's implementation in its entirety at
perldoc -m App::PipeFilter::Role::Reader::LineByLine
App::PipeFilter has top-level documentation including a table of contents for all the libraries and utilities included in the project.
https://rt.cpan.org/Public/Dist/Display.html?Name=App-PipeFilter
https://github.com/rcaputo/app-pipefilter
App::PipeFilter::Role::Reader::LineByLine is Copyright 2011 by Rocco Caputo. All rights are reserved. App::PipeFilter::Role::Reader::LineByLine is released under the same terms as Perl itself.
To install App::PipeFilter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::PipeFilter
CPAN shell
perl -MCPAN -e shell install App::PipeFilter
For more information on module installation, please visit the detailed CPAN module installation guide.