PICA::Data - PICA record processing
version 0.12
This module is aggregated methods and functions to process parsed PICA records, represented by an array of arrays.
Adopted from Catmandu::Fix::pica_map, function can be used to extract a list of subfield values from a PICA record based on a PICA path expression.
This function can also be called as values on a blessed PICA::Data record:
values
bless $record, 'PICA::Data'; $record->values($path);
Same as pica_values but only returns the first value. Can also be called as value on a blessed PICA::Data record.
pica_values
value
Returns a PICA record limited to fields specified in a PICA path expression. Always returns an array reference. Can also be called as fields on a blessed PICA::Data record.
fields
Parses a PICA path expression. On success returns a list reference with:
regex string to match fields against (must be compiled with qr{...} or /.../)
qr{...}
/.../
regex string to match occurrences against (must be compiled)
regex string to match subfields against (must be compiled)
substring start position
substring end position
PICA::Record implements an alternative, more heavyweight encoding of PICA records.
Johann Rolschewski <rolschewski@gmail.com>
This software is copyright (c) 2014 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.
To install Catmandu::PICA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::PICA
CPAN shell
perl -MCPAN -e shell install Catmandu::PICA
For more information on module installation, please visit the detailed CPAN module installation guide.