Catman...::Line(3pm)
β¨ Catmandu::Exporter::MARC::Line π
okay so bestie, this is the manual page for Catmandu::Exporter::MARC::Line (that's the Catman...::Line(3pm) girlie if you're squinting at the header) β a Perl module, and she's giving extremely specific niche exporter energy. π
πΈ NAME πΈ
Catmandu::Exporter::MARC::Line β the exporter that takes your MARC records and turns them into Index Data's MARC Line format. no cap, that's literally her whole job. π¦
β¨ SYNOPSIS β¨
like, here's how you actually use her:
# 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;
so you can either hit her from the command line like a boss, or import her in Perl and do the add + commit combo. both iconic. π
π«Ά CONFIGURATION π«Ά
here's where you set the vibe. every option, no skipping, periodt:
fileβ write the output to a local file, and you give her the path or a file handle. or, if you're feeling spicy: pass a scalar reference and she'll write to a string instead, or pass a code reference and she'll write to a callback function. versatile queen. β¨fhβ write the output to anIO::Handle. if you don't specify one,Catmandu::Util::ioshows up and creates the output handle for you from thefileargument, or just usesSTDOUT. she's got you either way. πfixβ an ARRAY of one or more fixes or file scripts that get applied to the exported items. one fix? cute. forty fixes? she can handle it. πencodingβ the binmode of the output streamfh. defaults to":utf8"so your unicode stays unbothered and thriving. π¦
π METHODS π
for the full rundown of methods, go check out Catmandu::Exporter, Catmandu::Addable, Catmandu::Fixable, Catmandu::Counter, and Catmandu::Logger. they've got the whole list, she's not about to retype all of it, iykyk. π
π AUTHOR π
Johann Rolschewski, <jorol at cpan> β the mastermind behind this whole thing. we stan. π
π SEE ALSO π
- Catmandu::Exporter
reminder bestie: this is the module for exporting MARC records into Index Data's MARC Line format, and everything above is exactly what she does. no invented features, just facts with better vibes. π
and that's the page! πΈ this manual came to you from perl v5.38.2, dated 2024-08-03 β thanks for reading, love u, bye!! πβ¨
π¦ where this page comes from
- debian trixie: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms