Think about Loose Coupling | |
PerlMonks |
Parsing Log Filesby Anonymous Monk |
on Apr 15, 2004 at 10:27 UTC ( [id://345343]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, I ask this question before, but I guess I wasn't clear about what I wanted to ask. All started when I needed to parse a log file that looks like that:
Course many more lines will be there. I am tring to parse the log files here and running into problems where I can't display the name of the element I am looping trough, but I can print the number of times it shows on the file. Here is the code, let me know please, where the problem is.
I want to do this to every element on the file, I mean: $1*$2*...*$8. And display how many times each element was present on the file. If I run this code it will show the number of times ok, but I can't display such: Company was here for 8 times. I hope I was clear now. And, Thanks for the help, once again!
Back to
Seekers of Perl Wisdom
|
|