From: Ben Ostrowsky Date: Mon, 25 Jul 2011 16:28:50 +0000 (+0000) Subject: When Geonames has no data for a ZIP, use patron data even if --believegn X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=b60c7477363238bd903cec88f01227a6a6e9348b When Geonames has no data for a ZIP, use patron data even if --believegn --- diff --git a/enrich_zips b/enrich_zips index 3c52e24..22fca06 100755 --- a/enrich_zips +++ b/enrich_zips @@ -69,7 +69,7 @@ while (<>) { } if ($makezips) { - if ($city ne $dbcity || $state ne $dbstate) { + if (defined $zips{$zip} && ($city ne $dbcity || $state ne $dbstate)) { if ($believegn) { $city = $dbcity; $state = $dbstate;