if( any { /^\Q$req_type{$req_id}\E$/ } @req_reqest) { $OTAF_data{$req_type{$req_id}}++; $OTAF_hour_stats{$start_hour}{'Total_calls'}++; $OTAF_data{'Total'}{'Total'}++; if ($status eq "0") { $OTAF_data{'Failure'}{$req_type{$req_id}}++; $OTAF_data{'Errors'}{$db_error}++; $OTAF_data{'Total'}{'Success'}++; } elsif ($status eq "1") { $OTAF_data{'Success'}{$req_type{$req_id}}++; $OTAF_data{'Total'}{'Failure'}++; } }