]> git.openstreetmap.org Git - dns.git/commitdiff
Fixed to work with Ubuntu's XML::TreeBuilder
authorTom Hughes <tom@compton.nu>
Wed, 12 Oct 2011 21:49:05 +0000 (22:49 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 12 Oct 2011 21:49:05 +0000 (22:49 +0100)
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 = 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"))
 {