On Wednesday, August 03, 2005 12:31 PM, KEVIN ZEMBOWER wrote: >I'd like to create a 270 field (I think) from this information. I'd like to do something similar to this pseudo-code: >my $mprod = MARC::Field->new('270', ' ', ' ',); #Base record >$mprod = MARC::Field->update($mprod, a=>$ADP) if $ADP; >$mprod = MARC::Field->update($mprod, b=>$CTYP) if $CTYP; >$mprod = MARC::Field->update($mprod, c=>$STP) if $STP; >....
Unless I'm mistaken, you should be able to do something similar to the above (using the suggestions already provided by others) by building an array of subfield code+data pairs: push @subfields, 'a', $ADP if $ADP; #... for each subfield element Then, once all subfields have been added to @subfields: $field = MARC::Field->new('270','','', @subfields); $record->append_fields($field) #### Please correct me if I am wrong, Bryan Baldus [EMAIL PROTECTED] [EMAIL PROTECTED] http://home.inwave.com/eija