[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using MARC.pm to create records with repeating subfields
Hi Derek and Mark,
In a message dated 12/19/00 9:12:17 PM Central Standard Time,
derekglane@YAHOO.COM writes:
> Actually not justified.We are just not as vigorous array flatteners
> as one might think.
In this specific case, the implementation of both addfield and getupdate was
much cleaner and easier by restricting to a pure ordered list. Each subfield
name/value could be handled without knowledge of previous history or complex
data structures.
There is an example of just this usage in t/test1.t in the distribution
(creating
four distinct "z" subfields). One of the things we did in ceating the test
suite
for MARC.pm was try to incorporate all the special cases found in real MARC
records. When you wonder how to do something, the test programs are often
a reasonable place to look.
-bill