R
robertchen117
Please ignore my first post for not clear question, here is my issue:
My log file with a long list like this item:
Fri Oct 6 00:00:23 2006: TR_execute_task( Lib/Task: library_name1/
task_name2 run by www.hp.com on 7 targets, out = 257
I know I can use $task_hash{$taskinfo} += targets; -->count by lib/
task name. Also need count the bytes according to the lib/task name.
And problems is I also need to count by time:
output should like this:
9:00am - 9:59am
8,010 task2 lib3 77 targets 200,345 output
3,221 task12 lib3 12 targets 1,530,234 output
....
10:00am - 10:59am
.....
This would need very complex data structure, please help me how to do?
Do we have hash over hash? What should we implement this?
Thanks a lot for help...
My log file with a long list like this item:
Fri Oct 6 00:00:23 2006: TR_execute_task( Lib/Task: library_name1/
task_name2 run by www.hp.com on 7 targets, out = 257
I know I can use $task_hash{$taskinfo} += targets; -->count by lib/
task name. Also need count the bytes according to the lib/task name.
And problems is I also need to count by time:
output should like this:
9:00am - 9:59am
8,010 task2 lib3 77 targets 200,345 output
3,221 task12 lib3 12 targets 1,530,234 output
....
10:00am - 10:59am
.....
This would need very complex data structure, please help me how to do?
Do we have hash over hash? What should we implement this?
Thanks a lot for help...