in reply to writing to a log file....

... or, further to the previous pertinent replies, in the interests of far more readable code, use (pun, once again, intended:-) autodie

A user level that continues to overstate my experience :-))