Fsdb::Support::DelayPassComments - support for buffering comments
Buffer and send out comments
$filter->{_delay_pass_comments} = new Fsdb::Support::DelayPassComments;
or more likely, one uses it indirectly with Fsdb::Filter and Fsdb::IO::Reader:
$self->{_in} = finish_io_options('input', -comment_handler => create_delay_pass_comments_sub); $self->{_out} = new Fsdb::IO::Writer(...); ... # in Fsdb::Filter $self->{_delay_comments}->flush($self->{_out};
Creates a buffer for comments that will run with bounded memory usage. New requires the output stream, a Fsdb::IO::Writer object. Fsdb::Filter will dump these after all other output.
$dpc->enqueue($comment [, $other_comments...])
Save up the $COMMENT.
$dpc->spill_to_disk
Internal: switch from in-memory caching to disk caching.
$dpc->flush($output_fsdb);
Dump all saved comments to the saved Fsdb::IO::Writer, or if $OUTPUT_FSDB is undef, then to stdout.
$OUTPUT_FSDB
To install Fsdb, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fsdb
CPAN shell
perl -MCPAN -e shell install Fsdb
For more information on module installation, please visit the detailed CPAN module installation guide.