I wonder how one retains a repeatble subfields when
reconstructing the filed. The script below only
outputs the first subfield code n in its proper
position, and retain the data for multiple subfield
n's from the input file omitting the subfield code n.
if (defined($r534->subfield('p
I may be wrong (as I am new to Perl), but I believe $r534->subfield('n') is
being called in a scalar context, so it retrieves only the first instance of
subfield n. Perhaps:
my @subfields = $r534->subfields();
my @newsubfields = ();
#break subfields into code-data array (so the entire field is in