- or download this
#!/usr/bin/env perl
use strict;
...
return \%towns;
}
- or download this
#!/usr/bin/env perl
use strict;
...
$self->{towns} = \%towns;
}
- or download this
my $us_towndb = TownDatabase->new(file => 'towns_usa.dat');
my $eu_towndb = TownDatabase->new(file => 'towns_eu.dat');
- or download this
#!/usr/bin/env perl
use strict;
...
}
close $ifh;
}
- or download this
my $towndb = TownDatabase->new();
foreach my $region (qw[eu us au]) {
$towndb->loadFile($region . 'towns.dat');
}