Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I have this file I am reading which contains the following:
I am trying to count the occurrence of each location so for the file listed above I should have output as follow:817 5:00 817 5:00 817 5:15 123 4:45 817 5:30 495 7:45
Any Idea of an easy way to do it? Thanks817=4 123=1 495=1
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: count of a word occurrence
by jZed (Prior) on Mar 23, 2004 at 04:17 UTC | |
by DamnDirtyApe (Curate) on Mar 23, 2004 at 04:51 UTC | |
by Roy Johnson (Monsignor) on Mar 23, 2004 at 16:41 UTC | |
by DamnDirtyApe (Curate) on Mar 23, 2004 at 16:48 UTC | |
Re: count of a word occurrence
by sgifford (Prior) on Mar 23, 2004 at 06:22 UTC | |
Re: count of a word occurrence
by chimni (Pilgrim) on Mar 23, 2004 at 04:15 UTC | |
by jdporter (Chancellor) on Mar 23, 2004 at 04:59 UTC |
Back to
Seekers of Perl Wisdom