CPAN-Maker
view release on metacpan or search on metacpan
lib/File/Process.pm view on Meta::CPAN
my ( $fh, $all_lines, $args ) = @_;
my $ref = $args->{csv}->getline_hr($fh);
return $ref;
}
)
=back
=head1 CAVEATS
Processing each line using hooks and callbacks can introduce
inefficiencies in file processing. This class is meant to be used on
moderately sized files. In it's basic forms, the methods will read all
lines into memory as it iterates over the file. Your processing may
not require that lines be accumulated at all. Your custom C<process()>
or C<filter()> hook can choose to return an undefined value which
prevents a line from being added to the buffer.
Reading each line one-at-a-time may be inefficient as well, future
version may introduce a slurp mode and/or the ability to send an array
which represents a list of lines to process.
( run in 2.952 seconds using v1.01-cache-2.11-cpan-9b1e4054eb1 )