Nicolas Steenlant > Catmandu-MARC-0.02 > Catmandu::Exporter::MARC

Download:
Catmandu-MARC-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source   Latest Release: Catmandu-MARC-0.205

NAME ^

Catmandu::Exporter::MARC - serialize parsed MARC data

SYNOPSIS ^

    use Catmandu::Exporter::MARC;

    my $exporter = Catmandu::Exporter::MARC->new(file => "marc.xml", type => "XML");
    my $data = {
     record => [
        ...
        [245, '1', '0', 'a', 'Cross-platform Perl /', 'c', 'Eric F. Johnson.'],
        ...
        ],
    };
    
    $exporter->add($data);
    $exporter->commit;

    # to serialize MARC-in-JSON:
    my $exporter = Catmandu::Exporter::MARC->new(record_format => "MARC-in-JSON");
syntax highlighting: