Subject: | MARC::File::XML Bug: header logic in method "record" |
Date: | Fri, 14 Mar 2008 08:59:58 -0400 |
To: | bug-MARC-XML [...] rt.cpan.org |
From: | Bill Dueber <dueberb [...] umich.edu> |
$VERSION = '0.88';
This is perl, v5.8.6 built for darwin-thread-multi-2level
(with 4 registered patches, see perl -V for more detail)
The include/exclude header logic is reversed in method "record",
about line 333;
Instead of "if ($without_header) {
...it should be
unless ($without_header) { ...
This'll show up as a warning:
Use of uninitialized value in concatenation (.) or string at /Library/
Perl/5.8.6/MARC/File/XML.pm line 334.
...if you call "as_xml_record" due to the encoding not being passed
along.
Thanks!
-Bill Dueber-