From: Tom Hughes Date: Wed, 12 Oct 2011 21:49:05 +0000 (+0100) Subject: Fixed to work with Ubuntu's XML::TreeBuilder X-Git-Url: https://git.openstreetmap.org/dns.git/commitdiff_plain/0b093e201d4c25d31d07bed467f644dbbf749910?hp=bd2f0887ebbc814c67478f3503e52a96ff1106ab Fixed to work with Ubuntu's XML::TreeBuilder --- diff --git a/bin/mkgeo b/bin/mkgeo index 7f80e98..880b2d5 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -15,7 +15,9 @@ my $servers = YAML::LoadFile("src/${source}"); my %countries = (); -my $countries = XML::TreeBuilder->new->parsefile("lib/countries.xml"); +my $countries = XML::TreeBuilder->new; + +$countries->parsefile("lib/countries.xml"); foreach my $country ($countries->look_down("_tag" => "country")) {