Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: processing timelog

by hippo (Bishop)
on Aug 24, 2014 at 09:01 UTC ( [id://1098448]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found