On Wed, Aug 18, 2004 at 08:23:59AM -0500, Bryan Baldus wrote:
> Both seem to fail to capture the warnings reported by MARC::File::USMARC.

There appears to be a bug in MARC::Batch::next() code at line 123 which
extracts the warnings from the newly instantiated MARC::Record object
and stuffs them into the MARC::Batch object so that they are available
at that level.

    my @warnings = $rec->warnings();

The bug is that calling warnings() clears the warnings storage in the
MARC::Record object as a side effect. MARC::Batch should probably side
step calling warnings() and dig into the object directly...or there
should be another method that doesn't zap the storage.

Let me see if I can duplicate this problem in a test, and then see if
the fix actually works. If you can provide a .t file for the
MARC::Record distribution that would be handy too :-)

//Ed

Reply via email to