MARC::Spec::Subspec(3pm)

MARC::Spec::Subspec3pm

Subspec specification

Usage

    use MARC::Spec;
    use MARC::Spec::Subspec;
    use MARC::Spec::Comparisonstring;
    
    # create an empty subspec
    my $subspec = MARC::Spec::Subspec->new;
    
    # create the subterms
    my $ms  = MARC::Spec::parse('245$a')';
    my $cmp = MARC::Spec::Comparisonstring->new('Perl');
    
    # add subterms to subspec
    $subspec->left($ms);
    $subspec->right($cmp);
    $subspec->operator('=');
    
    say $subspec->subterms;     # '245$a=\Perl'

Overview

MARC::Spec::Subspec is the subspec specification of a MARC::Spec.

See MARCspec - A common MARC record path language <http://marcspec.github.io/MARCspec/> for further details on the syntax.

Methods

new

Create a new MARC::Spec::Subspec instance.

to_string

Returns the spec as a string.

Attributes

left

Obligatory. The left subterm: a MARCspec as a string.

right

Obligatory. The right subterm: a MARCspec as a string.

operator

One of "=", "!=", "~", "!~", "!", or "?". Default is "?".

Contributors

•

Johann Rolschewski, "<jorol at cpan>"

Releases

4 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10–11
  2. 12–13

Author

Carsten Klee "<klee at cpan.org>"

Bugs

Please report any bugs to <https://github.com/MARCspec/MARC-Spec/issues>

From libmarc-spec-perl 2.0.3-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.