MAB2::...er::RAW(3pm)
π NAME π
MAB2::Parser::RAW β it's a parser for MAB2 RAW format, bestie, and it's literally the whole point of this page π
(also hi, you're reading the MAB2::Parser::RAW(3pm) page from the User Contributed Perl Documentation, iykyk π)
β¨ SYNOPSIS β¨
okay so MAB2::Parser::RAW is a parser for raw MAB2 records. that's it, that's the vibe. π¦
here's the tea though: MAB2::Parser::RAW expects UTF-8 encoded files as input. if that's not what you're serving, then instead provide a filehandle that has a specified I/O layer. no cap.
use MAB2::Parser::RAW;
my $parser = MAB2::Parser::RAW->new( $filename );
while ( my $record_hash = $parser->next() ) {
# do something
}
πΈ Arguments πΈ
"file"β path to the file with MAB2 Band records π"fh"β an open filehandle for the file with MAB2 Band records π
π METHODS π
π new($filename | $filehandle)
this is the constructor, bestie β hand it either a $filename or a $filehandle and it's giving brand new parser energy β¨
π«Ά next()
reads the next record from the MAB2 input stream, and returns a Perl hash. one at a time, like a little snack π
π§ _decode($record)
deserialize a raw MAB2 record into an ARRAY of ARRAYs. iconic nested-array behaviour, periodt π
β SEEALSO β
Catmandu::Importer::MAB2β go look at this one too, fr fr π
π AUTHOR π
Johann Rolschewski <jorol@cpan.org> β absolute legend, we stan π
π 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. slay πΈ
and that's the whole page, bestie β no notes, 10/10, main character documentation energy π
perl v5.36.0 β¦ 2022-12-04 β¦ MAB2::...er::RAW(3pm) β mwah, bye bestie, go parse some records π¦π
π¦ 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