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


in reply to Can I clean this up??

print FIL "\n$ct is down at this time.\n"; open(FIL,">>$myfil") || die "No open for ct tot: $! \n";
Uh, this is bass-ackwards -- you print to the file before you open it. That isn't going to work at all.