]> git.openstreetmap.org Git - dns.git/blobdiff - bin/mkgeo
Fixed to work with Ubuntu's XML::TreeBuilder
[dns.git] / bin / mkgeo
index 7f80e98018a9fc44e104b52eee9844ab6be2efd3..880b2d56681c1143e1a76471cdc54894f07593a3 100755 (executable)
--- a/bin/mkgeo
+++ b/bin/mkgeo
@@ -15,7 +15,9 @@ my $servers = YAML::LoadFile("src/${source}");
 
 my %countries = ();
 
 
 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"))
 {
 
 foreach my $country ($countries->look_down("_tag" => "country"))
 {