Catman...::Line(3pm)

πŸ“¦
version 1.320 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ 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 an IO::Handle. if you don't specify one, Catmandu::Util::io shows up and creates the output handle for you from the file argument, or just uses STDOUT. 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 stream fh. 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