Diab Jerius
and 1 contributors

NAME

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

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:

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

No bugs have been reported.

Please report any bugs or feature requests to bug-data-record-serialize@rt.cpan.org, or through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Data-Record-Serialize.

SEE ALSO

LICENSE AND COPYRIGHT

Copyright (c) 2014 The Smithsonian Astrophysical Observatory

Data::Record::Serialize is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

AUTHOR

Diab Jerius <djerius@cpan.org>