retain repeatable subfields

2004-08-06 Thread Jackie Shieh
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

RE: retain repeatable subfields

2004-08-06 Thread Bryan Baldus
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