open(FH, $log) || do { $down = 'true'; }; #### if(open(FH, $log)) { send tail of log file close(FH); } else { ... send server down... }