logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MAB2::Parser::Disk - MAB2 Diskette format parser

Arguments

       "file"
           Path to file with MAB2 Diskette records.

       "fh"
           Open filehandle for file with MAB2 Diskette records.

Author

       Johann Rolschewski <jorol@cpan.org>

Methods

new($filename|$filehandle)next()
       Reads the next record from MAB2 input stream. Returns a Perl hash.

   _decode($record)
       Deserialize a raw MAB2 record to an ARRAY of ARRAYs.

Name

       MAB2::Parser::Disk - MAB2 Diskette format parser

See Also

       Catmandu::Importer::MAB2.

Synopsis

       MAB2::Parser::Disk is a parser for MAB2 Diskette records.

       MAB2::Parser::Disk expects UTF-8 encoded files as input. Otherwise provide a filehande with a specified
       I/O layer.

           use MAB2::Parser::Disk;

           my $parser = MAB2::Parser::Disk->new( $filename );

           while ( my $record_hash = $parser->next() ) {
               # do something
           }

See Also