Catmandu::Exporter::MARC - serialize parsed MARC data
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");
To install Catmandu::MARC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::MARC
CPAN shell
perl -MCPAN -e shell install Catmandu::MARC
For more information on module installation, please visit the detailed CPAN module installation guide.