MARC::SubjectMap::Rules - storage for rules
my $rules = MARC::SubjectMap->new(); $rules->addRule( $rule );
Since there may be a very large set of translation rules in a given configuration the MARC::SubjectMap::Rules class allows the rules and lookup tables to stored on disk rather than memory.
Create rule storage.
Add a rule to the rules storage. A rule must be a MARC::SubjectMap::Rule object.
$rules->addRule( $rule );
Look up a rule in storage using the field, subfield and original text. If no rule is found you will be returned undef.
my $rule = $rules->getRule( field => '600', subfield => 'a', original => 'Africa' );