Re: sending marc records into a script that uses MARC::Batch

2014-05-30 Thread Stefano Bargioni
If I'm not wrong, $batch-strict_off(); will avoid your loop to print warnings and stop processing records. HTH. Stefano On 29/mag/2014, at 23.13, John E Guillory wrote: Thanks Timothy for your help. When processing about 5 million records I would expect some crazy records. The new script

Re: sending marc records into a script that uses MARC::Batch

2014-05-30 Thread Timothy Prettyman
I think you have to check for warnings as you read each record, so try moving your error handing code right after the batch-next() call. But Robin's suggestion is good advice, and is probably a more robust way to handle the crud that can show up in a file of marc records. -Tim On Fri, May 30,