The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Catmandu::Exporter::MAB2 - Package that exports MAB2 data

VERSION

version 0.03

SYNOPSIS

    use Catmandu::Exporter::MAB2;
 
    my $exporter = Catmandu::Exporter::MAB2->new(file => "mab2.dat", type => "RAW");
    my $data = {
     record => [
        ...
        [245, '1', 'a', 'Cross-platform Perl /', 'c', 'Eric F. Johnson.'],
        ...
        ],
    };
 
    $exporter->add($data);
    $exporter->commit;

NAME

Catmandu::Exporter::MAB2 - serialize parsed MAB2 data

METHODS

new(file => $file, %options)

Create a new Catmandu MAB2 exports which serializes into a $file. Optionally provide xml_declaration => 0|1 to in/exclude a XML declaration and, collection => 0|1 to include a MAB2 collection header.

AUTHOR

Johann Rolschewski <rolschewski@gmail.com>

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.