in reply to frequency strings 2 files
Then open the first file. Read it line by line, for each number, if it exists as a key in the hash, then increment the hash value.undef @hash{@array};
Finally, go over the array and print the corresponding hash value for each member (you might skip the print if the value is not defined as in your example).
What part do you have problems with?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: frequency strings 2 files
by philbertcheese86 (Initiate) on Jul 06, 2012 at 00:05 UTC | |
by ig (Vicar) on Jul 06, 2012 at 04:55 UTC | |
by thundergnat (Deacon) on Jul 06, 2012 at 15:49 UTC |