You can simply replace each beginning of the line with the timestamp:
$message=~ s!^!$timestamp !mg;
In reply to Re: Appending time to each line
by Corion
in thread Appending time to each line
by ajose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |