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

PICA::Parser::Plain - Plain PICA+ format parser

SYNOPSIS

    use PICA::Parser::Plain;

    my $parser = PICA::Parser::Plain->new( $filename );

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

METHODS

new( $input )

Initialize parser to read from a given file, handle (e.g. IO::Handle), or string reference.

next

Reads the next PICA+ record. Returns a hash with keys _id and record.

next_record

Reads the next PICA+ record. Returns an array of field arrays.

SEEALSO

PICA::PlainParser, included in the release of PICA::Record implements another PICA+ format parser, not aligned with the Catmandu framework.