if ( sendmail $tank[$i] ){} #### if ( sendmail %{$tank[$i]} ){} #### print $Mail::Sendmail::error unless ( sendmail %{$tank[$i]} );