Revision history for XML-Simple
+2.24 2017-04-17 16:12:00+12:00 Pacific/Auckland
+ - fix typo in last commit with mistakenly removed some underscores
+ - don't initialise $XML::Simple::PREFERRED_PARSER to undef as a caller may
+ have already set it before loading XML::Simple and if not, it would have
+ defaulted to undef anyway (RT#118205 from Slaven Rezić)
+
2.23 2017-04-17 15:49:14+12:00 Pacific/Auckland
- another fix to the logic for detecting circular references (RT#114120 from
Matthias Pitzl, also report from Erland Sommarskog)
"web" : "https://github.com/grantm/xml-simple"
}
},
- "version" : "2.23"
+ "version" : "2.24"
}
perl: '5.008'
resources:
repository: git://github.com/grantm/xml-simple.git
-version: '2.23'
+version: '2.24'
"TEST_REQUIRES" => {
"Test::More" => "0.88"
},
- "VERSION" => "2.23",
+ "VERSION" => "2.24",
"test" => {
"TESTS" => "t/*.t"
}
This archive contains the distribution XML-Simple,
-version 2.23:
+version 2.24:
An API for simple XML files
name = XML-Simple
author = Grant McLean <grantm@cpan.org>
-version = 2.23
+version = 2.24
license = Perl_5
copyright_holder = Grant McLean
copyright_year = 2015
package XML::Simple;
-$XML::Simple::VERSION = '2.23';
+$XML::Simple::VERSION = '2.24';
=head1 NAME
XML::Simple - An API for simple XML files
@ISA = qw(Exporter);
@EXPORT = qw(XMLin XMLout);
@EXPORT_OK = qw(xml_in xml_out);
-$PREFERRED_PARSER = undef;
my %StrictMode = ();
my $refaddr = Scalar::Util::refaddr($ref);
if($refaddr) {
croak "circular data structures not supported"
- if $self->{ancestors}->{$refaddr};
- $self->{ancestors}->{$refaddr} = $ref; # keep ref alive until we delete it
+ if $self->{_ancestors}->{$refaddr};
+ $self->{_ancestors}->{$refaddr} = $ref; # keep ref alive until we delete it
}
else {
if($named) {
}
- delete $self->{ancestors}->{$refaddr};
+ delete $self->{_ancestors}->{$refaddr};
return(join('', @result));
}