3 use FS::UID qw( adminsuidsetup );
4 use FS::Record qw( qsearch );
5 use FS::cust_main_county;
11 foreach my $cust_main_county (
12 qsearch('cust_main_county', { 'country' => $country } )
15 if ( $cust_main_county->state =~ /\[([\w ]+)\]\s*$/ ) {
16 $cust_main_county->state($1);
17 my $error = $cust_main_county->replace;
24 #use Locale::SubCountry;
26 ##my $state = 'Tôkyô [Tokyo]';
27 #my $state = 'Tottori';
29 #my $lsc = new Locale::SubCountry 'JP';
31 #print $lsc->code($state)."\n";