MARC::Moose::Field::Std - Standard Marc Field (tag >= 010)
version 1.0.46
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' ] ] );
In scalar context, returns the first content of subfield which letter match regular expression regexp . In list context, returns all subfields content.
regexp
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')
Frédéric Demians <f.demians@tamil.fr>
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.
To install MARC::Moose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MARC::Moose
CPAN shell
perl -MCPAN -e shell install MARC::Moose
For more information on module installation, please visit the detailed CPAN module installation guide.