MAB2::Writer::RAW - MAB2 RAW format serializer
Contents
Arguments
See MAB2::Writer::Handle.
Copyright And License
This software is copyright (c) 2013 by Johann Rolschewski.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5
programming language system itself.
perl v5.36.0 2022-12-04 MAB2::Writer::RAW(3pm)
Methods
new(file=>$file|fh=>$fh[,encoding=>'UTF-8'])_write_record($record)
Name
MAB2::Writer::RAW - MAB2 RAW format serializer
Seealso
MAB2::Writer::Handle, Catmandu::Exporter.
Synopsis
MAB2::Writer::RAW is a MAB2 serializer.
use MAB2::Writer::RAW;
my @mab_records = (
[
['001', ' ', '_', '2415107-5'],
['331', ' ', '_', 'Code4Lib journal'],
['655', 'e', 'u', 'http://journal.code4lib.org/', 'z', 'kostenfrei'],
...
],
{
record => [
['001', ' ', '_', '2415107-5'],
['331', ' ', '_', 'Code4Lib journal'],
['655', 'e', 'u', 'http://journal.code4lib.org/', 'z', 'kostenfrei'],
...
]
}
);
$writer = MAB2::Writer::RAW->new( fh => $fh );
foreach my $record (@mab_records) {
$writer->write($record);
}
