Skip to content

Commit

Permalink
Only need to load the module once
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Feb 29, 2024
1 parent 8a7efdc commit 64ee24c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions createdatabase.PL
Original file line number Diff line number Diff line change
Expand Up @@ -2083,12 +2083,12 @@ if(my $osm = $ENV{'OSM_HOME'}) {
# the format doesn't seem to be normalized and fields are inconsistent,
# so try hard to extract the data

require XML::LibXML::Reader;
XML::LibXML::Reader->import();

my @files = ('north-america-latest.osm.bz2', 'europe-latest.osm.bz2', 'australia-oceania-latest.osm.bz2');

foreach my $file(@files) {
require XML::LibXML::Reader;
XML::LibXML::Reader->import();

my $filename = File::Spec->catfile($osm, $file);

$| = 1;
Expand Down

0 comments on commit 64ee24c

Please sign in to comment.