http://qs321.pair.com?node_id=310410


in reply to open failure code

You could do
open(FH, $log) || do { $down = 'true'; };
However that's really bad form, IMHO.

I might do something like this:

if(open(FH, $log)) { send tail of log file close(FH); } else { ... send server down... }
... and there are various other ways of coding this as well.

Michael