#!/usr/bin/perl # # import-county-tax-rates username state country ) { my($tax, $county) = split(','); #half-ass CSV parser my $cust_main_county = new FS::cust_main_county { 'county' => $county, 'state' => $state, 'country' => $country, 'tax' => $tax, }; my $error = $cust_main_county->insert; #my $error = $cust_main_county->check; die $error if $error; }