I think you mean
print LOG "[".localtime()."] $log : @data \n";
or
print LOG "[", scalar localtime, "] $log : @data \n";
Your point being that we don't know where $localtime is being set, so it might be stale.
In reply to Re^2: Localtime Updating
by ikegami
in thread Localtime Updating
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |