From 14eb6e57e306023d29d4a13681b85dfa19a5be28 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 3 Jul 2014 04:32:27 +0000 Subject: [PATCH] type count fix for nanpa preload script git-svn-id: svn://192.168.202.10@2146 3d104415-ff17-0410-8863-d5cf3c621b8a --- bin/nanpa_type_preload.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/nanpa_type_preload.pl b/bin/nanpa_type_preload.pl index 146ccc7c..3a280dd7 100644 --- a/bin/nanpa_type_preload.pl +++ b/bin/nanpa_type_preload.pl @@ -486,9 +486,9 @@ while ($sthArows > $rec_count) } ################################################## - if ($type=='S') {$landline++;} - if ($type=='C') {$cellphone++;} - if ($type=='I') {$invalid++;} + if ($type =~ /S|V/) {$landline++;} + if ($type =~ /C/) {$cellphone++;} + if ($type =~ /I/) {$invalid++;} $rec_count++; if ( ($rec_count =~ /00000$/i) && ($DB) ) {print STDERR "$rec_count / $sthArows (S:$landline | C:$cellphone | I:$invalid)\n";} }