MAB2::...er::RAW(3pm)
π¦ MAB2::...er::RAW(3pm) β ok bestie, sit DOWN π¦
Welcome to the manual page for MAB2::Writer::RAW β it's giving "Perl User Contributed Documentation," it's giving 3pm, and it's literally the moment you've all been waiting for. π
β¨ NAME β¨
MAB2::Writer::RAW β a MAB2 RAW format serializer. That's it. That's the whole vibe. π
πΈ SYNOPSIS πΈ
So MAB2::Writer::RAW is a MAB2 serializer, periodt. Here's the whole thing, no edits, no cap:
use MAB2::Writer::RAW;
my @mab_records = (
[
['001', ' ', '_', '2415107-5'],
['331', ' ', '_', 'Code4Lib journal'],
['655', 'e', 'u', 'http://journal.code4lib.org/', 'z', 'kostenfrei'],
...
],
{
record => [
['001', ' ', '_', '2415107-5'],
['331', ' ', '_', 'Code4Lib journal'],
['655', 'e', 'u', 'http://journal.code4lib.org/', 'z', 'kostenfrei'],
...
]
}
);
$writer = MAB2::Writer::RAW->new( fh => $fh );
foreach my $record (@mab_records) {
$writer->write($record);
}
Notice how a record can be a bare arrayref OR a hashref with a record key? Both are valid, both are iconic. π«Ά
π Arguments π
See MAB2::Writer::Handle. That's where the args live, bestie β this page is not the one holding that info. π
π₯ METHODS π₯
β new(file => $file | fh => $fh [, encoding => 'UTF-8'])
The constructor. You hand it either a file or an fh (pick your fighter), and optionally an encoding which defaults to 'UTF-8'. Slay. β¨
β _write_record($record)
The internal record-writing method, taking $record. It's underscore-prefixed, so you know what that means β iykyk. π
π SEEALSO π
Go read these next, fr fr:
MAB2::Writer::HandleCatmandu::Exporter
π AUTHOR π
Johann Rolschewski <jorol@cpan.org> β the main character who made this happen. π
π COPYRIGHT AND LICENSE π
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. No cap, that's the actual license. π¦
Reminder bestie: this page isMAB2::...er::RAW(3pm)from the User Contributed Perl Documentation β generated byperl v5.36.0, dated2022-12-04. That's the footer energy, and I'm obsessed with it. πβ¨
π¦ where this page comes from
- debian bookworm: libcatmandu-mab2-perl 0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-mab2-perl 0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-mab2-perl 0.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libcatmandu-mab2-perl 0.24-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms