if($days == 0) { my $res = `fcping -d`; my @temp_arr = split(" ", $res); my $port = $temp_arr[2]; chomp($temp = `fcping $port`); @TEMP_1 = split("and", $temp); @TEMP_2 = split(" ", $TEMP_1[1]); if($TEMP_2[0] eq "0") { print "Network Issue"; } else { print "Check HBA Status"; } }