} elsif ( $format eq 'cch-zip' || $format eq 'cch-update-zip' ) {
@fields = qw( zip city county state postalcity countyfips countydef default geocode cityflag unique );
- push @fields, 'actionflag' if $format eq 'cch-update';
+ push @fields, 'actionflag' if $format eq 'cch-update-zip';
$imported++ if $format eq 'cch-update'; #empty file ok
$hash->{'data_vendor'} = 'cch-zip';
delete($hash->{$_}) foreach qw( countyfips countydef unique );
- $hash->{'cityflag'} = s/ //g;
+ $hash->{'cityflag'} =~ s/ //g;
if (exists($hash->{actionflag}) && $hash->{actionflag} eq 'D') {
delete($hash->{actionflag});