I have some common code that many programs call that writes messages to
a log file. It looks something like...
if (open(LOG, ">>$logfile")) {
print LOG $message;
close(LOG) || warn "unable to close log file $logfile";
}
else {
warn "unable to open $logfile for appending";
}
The problem
Erick Nelson wrote:
>
> I have some common code that many programs call that writes messages to
> a log file. It looks something like...
>
> if (open(LOG, ">>$logfile")) {
>print LOG $message;
>close(LOG) || warn "unable to close log file $logfile";
> }
> else {
>warn "unable to ope
I have some common code that many programs call that writes messages to
a log file. It looks something like...
if (open(LOG, ">>$logfile")) {
print LOG $message;
close(LOG) || warn "unable to close log file $logfile";
}
else {
warn "unable to open $logfile for appending";
}
The problem