NAME
MARC::Moose::Writer - A Moose::Role to write somewhere MARC::Moose records
VERSION
version 1.0.33
ATTRIBUTES
formater
A MARC::Moose::Formater to be used to format records to write. By defaut, it's a MARC::Moose::Formater::Text formater.
fh
A file handle to which writing records. This can be a string with:
open my $fh, ">", \$str;
METHODS
begin
Method to be call before beginning writing record with write method. By default, this is just a call to the formater begin
method.
end
Method to be call at the end of the writing process, afet the last record has been written, the last call to write. By default, this is just a call to the formater end
method.
write($record)
Write MARC::Moose::Record $record into whatever data stream, a file, a socket, etc. It uses the formater to format the record. In this base class, the record is printed on STDOUT.
AUTHOR
Frédéric Demians <f.demians@tamil.fr>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Frédéric Demians.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.