NAME
PICA::Path - PICA path expression to match field and subfield values
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
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 $.