The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

MAB2::Parser::Disk - MAB2 RAW format parser

VERSION

version 0.03

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.

Catmandu...

    use MAB2::Parser::Disk;

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

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

SUBROUTINES/METHODS

new

next()

Reads the next record from MAB2 input stream. Returns a Perl hash.

_decode()

Deserialize a raw MAB2 record to an array of field arrays.

1; # End of MAB2::Parser::Disk

AUTHOR

Johann Rolschewski <rolschewski@gmail.com>

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.