On Jun 7, 2006, at 9:37 AM, Aaron Huber wrote:
#create new record object
my $rec = $rs->record($i);
#read in raw MARC to record
my $mrec = MARC::Record->new_from_usmarc($rec->rawdata());
I would just like to skip those items without records or suppress
this error and just go on to the next record, is this possible?
#create new record object
my $rec = $rs->record($i);
# make sure $rs (what is this?) returned a MARC::Record
if (!$rec) {
print STDERR "uhoh didn't get a record!\n";
next;
}
#read in raw MARC to record
my $mrec = MARC::Record->new_from_usmarc($rec->rawdata());
//Ed