in reply to open failure code
You could do
However that's really bad form, IMHO.open(FH, $log) || do { $down = 'true'; };
I might do something like this:
... and there are various other ways of coding this as well.if(open(FH, $log)) { send tail of log file close(FH); } else { ... send server down... }
Michael
In Section
Seekers of Perl Wisdom