Re: Supressing Errors in MARC::Record

2006-06-07 Thread Edward Summers
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 err

Supressing Errors in MARC::Record

2006-06-07 Thread Aaron Huber
I have a script that fetches MARC records from my library's holdings via Z39.50. Every once in a while a record doesn't have a MARC Record attached to it and I get the following error: Can't call method "rawdata" on an undefined value at zrss.pl line 47, line 1. Here's what I have on and aro