Try checking if print fails:
print LOG "Log start... \n" or die "wtf: $!";
See also suffering from buffering
In reply to Re: writing to a log file....
by toolic
in thread writing to a log file....
by biswanath_c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |