Catmandu::Exporter::MAB2 - Package that exports MAB2 data
version 0.04
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;
Catmandu::Exporter::MAB2 - serialize parsed MAB2 data
file
Path to file with MAB2 records.
fh
Open filehandle for file with MAB2 records.
type
Specify type of MAB2 records: Disk (Diskette), RAW (Band), XML. Default: 001. Optional.
xml_declaration
Write XML declaration. Set to 0 or 1. Default: 0. Optional.
collection
Wrap records in collection element (<datei>). Set to 0 or 1. Default: 0. Optional.
Create a new Catmandu MAB2 exports which serializes into a $file.
Add record to exporter.
Close collection (optional) and filehandle.
Catmandu::Exporter, Catmandu::Iterable.
Johann Rolschewski <rolschewski@gmail.com>
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.
To install Catmandu::MAB2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::MAB2
CPAN shell
perl -MCPAN -e shell install Catmandu::MAB2
For more information on module installation, please visit the detailed CPAN module installation guide.