Catmandu::Exporter::MARC::Line(3pm)

Catmandu::Exporter::MARC::Line3pm

Exporter for marc records to index data's marc line format

Usage

    # From the command line
    $ catmandu convert MARC to MARC --type Line < t/camel.mrc
    # From Perl
    use Catmandu;
    my $importer = Catmandu->importer('MARC', file => "t/camel.mrc", type => 'ISO');
    my $exporter = Catmandu->exporter('MARC', file => "camel.line", type => 'Line' );
    $exporter->add($importer);
    $exporter->commit;

Configuration

file

Write output to a local file given by its path or file handle. Alternatively a scalar reference can be passed to write to a string and a code reference can be used to write to a callback function.

fh

Write the output to an IO::Handle. If not specified, Catmandu::Util::io is used to create the output handle from the "file" argument or by using STDOUT.

fix

An ARRAY of one or more fixes or file scripts to be applied to exported items.

encoding

Binmode of the output stream "fh". Set to "":utf8"" by default.

Methods

See Catmandu::Exporter, Catmandu::Addable, Catmandu::Fixable, Catmandu::Counter, and Catmandu::Logger for a full list of methods.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Johann Rolschewski, <jorol at cpan>

From libcatmandu-marc-perl 1.320-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.