Data::Record::Serialize::Sink::array - append encoded data to an array.
version 1.06
use Data::Record::Serialize; my $s = Data::Record::Serialize->new( sink => 'array', ?(output => \@output), ... ); $s->send( \%record ); # last encoded record is here $encoded = $s->output->[-1];
Data::Record::Serialize::Sink::sink appends encoded data to an array.
It performs the Data::Record::Serialize::Role::Sink role.
$array = $s->output;
The array into which the encoded record is stored. The last record sent is at
$s->output->[-1]
Optional. Where to write the data. An arrayref is provided if not specified.
Please report any bugs or feature requests to bug-data-record-serialize@rt.cpan.org or through the web interface at: https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Record-Serialize
Source is available at
https://gitlab.com/djerius/data-record-serialize
and may be cloned from
https://gitlab.com/djerius/data-record-serialize.git
Please see those modules/websites for more information related to this module.
Data::Record::Serialize
Diab Jerius <djerius@cpan.org>
This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Data::Record::Serialize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Record::Serialize
CPAN shell
perl -MCPAN -e shell install Data::Record::Serialize
For more information on module installation, please visit the detailed CPAN module installation guide.