http://www.perlmonks.org?node_id=1003676


in reply to Re^2: Counting the number of times several strings appear
in thread Counting the number of times several strings appear

Hi, gather a count of all of the lines that are the same
You may have to check each of the lines, because not all the lines are the same. e.g

User logged in successfully at 10:35:33 User logged in successfully at 10:35:34 User logged in successfully at 10:35:35 User logged in successfully at 10:35:37
The lines above are not the same, because of the changing time the user logged in.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me