my $var_cot_descn="Veteran's Affairs";
my %cot_descn= ("Correctional","Veteran's Affairs","State Pharmacy Assistance Program","VA Medical Center","VA Mail Order Pharmacy","PHS 340B Entity");
if (exists $cot_descn{$var_cot_descn}){
print "CustomerDomain=\"GOV\"
/>
</Org>
\n";
}
else{
print "CustomerDomain=\"COM\"
/>
</Org>
\n";
}
一切正常,除非我与导致 if 条件失败的“退伍军人事务”进行比较。
我怎样才能解决这个问题?