I am trying to write a script that will find the start and end times
for specific transactions, and calculate the elapsed time for each
transaction. I am looking for the "Start", grabbing the transaction
number, then looking for the matching "End", which works fine most of
the time. The problem I am having is that the transactions do not
always finish before the next one begins, so specific transactions may
have their start and end times interspersed.

A simplified example would be:

201011191101 - T122 - Start
...
201011191115 - T122 - End
...
201011191118 - T123 - Start
....
201011191127 - T124 - Start
....
201011191129 - T124 - End
....
201011191130 - T123 - End

How would you go about this in Perl? Also, it is possible that there
might be a Start in one log file, and the matching End would be in the
next log file. How do you account for those situations.

-- 
Al Oomens
Wheaton, IL.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to