in reply to processing timelog

Your code doesn't look too problematic in general. However you are preforming string equality tests like this:

if($message eq "TP Service Request"){

but $message is the last field in the line from the input file and isn't being chomped so your string test will likely fail unless you take into account the EOL character(s). If you can correct that (probably best to use chomp to do so) you may have more success.

Replies are listed 'Best First'.
Re^2: processing timelog
by Laurent_R (Canon) on Aug 24, 2014 at 09:14 UTC
    An additional potential problem is that the lines have a trailing space that should also probably be removed for the equality test to work.