in reply to script for adding timestamp to stdin

You opened the file for append (with '>>') and then use it as input (while (<$fh>) {), which gives you and immediate EOF....

----
I Go Back to Sleep, Now.

OGB