If $client_id doesn't exist in @ping_host it has to pass the if condition, but it only pass when the @ping_host is empty. Am I doing anything wrong?
if ( !grep( $client_id, @ping_host ) ) {
print "Client Id $client_name doesn't exist \n";
}