Skip Menu |

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 106830
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: richlv [...] nakts.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: "Use of uninitialized value $self in hash element" when passing empty string
Date: Wed, 2 Sep 2015 20:55:49 +0300
To: bug-XML-LibXML [...] rt.cpan.org
From: Rich <richlv [...] nakts.net>
if attempting the following : use XML::LibXML::Reader; my $desc = ''; my $desc_reader = XML::LibXML::Reader->new(string => $desc); it fails with : Use of uninitialized value $self in hash element at /usr/lib/perl5/site_perl/5.20.1/x86_64-linux-thread-multi/XML/LibXML/Reader.pm line 143. XML:LibXML version 2.0122 -- Rich
Hi Rich, On Wed Sep 02 13:56:36 2015, richlv@nakts.net wrote: Show quoted text
> if attempting the following : > > use XML::LibXML::Reader; > my $desc = ''; > my $desc_reader = XML::LibXML::Reader->new(string => $desc); > > it fails with : > Use of uninitialized value $self in hash element at > /usr/lib/perl5/site_perl/5.20.1/x86_64-linux-thread- > multi/XML/LibXML/Reader.pm > line 143. >
Thanks for the report. This warning was fixed in the VCS in revision 1432:cf43921e7a12 . Working on this bug also prompted a refactoring where a module that did @EXPORT Was converted to @EXPORT_OK , so thanks again. RESOLVEDing. Regards, -- Shlomi Fish