|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: count of a word occurrenceby chimni (Pilgrim) |
| on Mar 22, 2004 at 23:15 UTC ( [id://338886]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
1) read the file in a while loop,split and use a hash ($hash{$_}++ ). 2) use someting like the below for all unique entries in the first column. grep 817 filename | wc -l hth chimni
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||