The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Record::Serialize::Sink::stream - output encoded data to a stream.

VERSION

version 0.18

SYNOPSIS

    use Data::Record::Serialize;

    my $s = Data::Record::Serialize->new( sink => 'stream', ... );

    $s->send( \%record );

DESCRIPTION

Data::Record::Serialize::Sink::stream outputs encoded data to a file handle.

It performs the Data::Record::Serialize::Role::Sink role.

INTERFACE

The following attributes may be passed to Data::Record::Serialize->new|Data::Record::Serialize/new>:

output

The name of an output file or a reference to a scalar to which the records will be written. output may be set to - to indicate output to the standard output stream.

fh

A file handle.

If neither is specified, output is written to the standard output stream.

BUGS AND LIMITATIONS

You can make new bug reports, and view existing ones, through the web interface at https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Record-Serialize.

SEE ALSO

Please see those modules/websites for more information related to this module.

AUTHOR

Diab Jerius <djerius@cpan.org>

COPYRIGHT AND LICENSE

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