Subject: | Use of uninitialized value in string eq at ..XML/Writer.pm line 738. |
While using XML::Writer 0.04 with Perl 5.8.0 on Linux, I get the following warning:
Use of uninitialized value in string eq at /usr/local/lib/perl5/site_perl/5.8.0/XML/Writer.pm line 739.
I've attached a patch that quiets this warning.
ky
*** Writer.pm.orig Wed Aug 20 12:20:48 2003
--- Writer.pm Wed Aug 20 12:22:11 2003
***************
*** 665,671 ****
%prefixMap = (%{$params{PREFIX_MAP}});
delete $params{PREFIX_MAP};
}
! my $defaultPrefix = $prefixMap{''};
delete $prefixMap{''};
# Generate the reverse map for URIs
--- 665,671 ----
%prefixMap = (%{$params{PREFIX_MAP}});
delete $params{PREFIX_MAP};
}
! my $defaultPrefix = $prefixMap{''} || '';
delete $prefixMap{''};
# Generate the reverse map for URIs