-
-
08 Jun 2021 16:09:57 UTC
- Distribution: marc-moose
- Module version: 1.0.45
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (3)
- Testers (553 / 0 / 1)
- Kwalitee
Bus factor: 1- 80.21% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (52KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- AnyEvent::Processor
- Carp
- Getopt::Long
- JSON
- List::Util
- MARC::Record
- Modern::Perl
- Moose
- Moose::Role
- Moose::Util::TypeConstraints
- MooseX::RW::Reader
- MooseX::RW::Reader::File
- MooseX::RW::Writer
- Pod::Usage
- Text::Iconv
- XML::SAX
- XML::SAX::Base
- XML::Simple
- XML::Writer
- YAML
- YAML::Syck
- base
- bytes
- strict
- utf8
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
MARC::Moose::Field::Std - Standard Marc Field (tag >= 010)
VERSION
version 1.0.45
ATTRIBUTES
subf
An ArrayRef of field subfields. Each subfield is this array is an 2D ArrayRef. For example:
$field->subf( [ [ 'a', 'Part1' ], [ 'b', 'Part2' ] ] );
or
$field->subf( [ [ a => 'Part1' ], [ b => 'Part2' ] ] );
METHODS
subfield( regexp )
In scalar context, returns the first content of subfield which letter match regular expression
regexp
. In list context, returns all subfields content.For example:
my $field = MARC::Moose::Field::Std->new( tag => '600', subf => [ [ a => 'Part 1' ], [ x => '2010' ], [ a => 'Part 2' ], [ b => 'Part 3' ], ] ); my $value = $field->subfield('a|b'); # Get 'Part 1' my @values = $field->subfield('a|b'); # Get ('Part1', 'Part 2')
AUTHOR
Frédéric Demians <f.demians@tamil.fr>
COPYRIGHT AND LICENSE
This software is copyright (c) 2022 by Frédéric Demians.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install MARC::Moose, copy and paste the appropriate command in to your terminal.
cpanm MARC::Moose
perl -MCPAN -e shell install MARC::Moose
For more information on module installation, please visit the detailed CPAN module installation guide.