# 加载account数据 my $hash_account = &get_account_hash(); sub get_account_hash { my $file = "$ENV{OUT}/ocs_account.tmp"; open FH,$file or die "open $file error!"; my %hash; while(<FH>) { chomp; my ($acc_id,$cust_id,@left) = split /\|/; $hash{$cust_id} = [$acc_id,$cust_id,@left]; } close FH; return \%hash; } |
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |