NAME
PICA::Path
VERSION
version 0.14
DESCRIPTION
PICA path expressions can be used to match fields and subfields of PICA::Data records. An instance of PICA::Path is a blessed array reference, consisting of the following fields:
regular expression to match fields against
regular expression to match occurrences against, or undefined
regular expression to match subfields against
substring start position
substring end position
NAME
PICA::Path - PICA path expression to match field and subfield values
METHODS
match_field( $field )
Check whether a given PICA field matches the field and occurrence of this path. Returns the $field
on success.
match_subfields( $field )
Returns a list of matching subfields (optionally trimmed by from and length) without inspection of field and occurrence values.
stringify( [ short ] )
Stringifies the PICA path to normalized form. Subfields are separated with $
, unless called as stringify(1)
or the first subfield is $
.
AUTHOR
Johann Rolschewski <rolschewski@gmail.com>
COPYRIGHT AND LICENSE
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.