in reply to Re^3: iterate/traverse Two Hashes at once
in thread iterate/traverse Two Hashes at once
Thanks. it gave me new ideas to approach my problem... Actually, what i am doing is: i have two hashes: %bigram_count and %word count in a separate program.
Next is, in another program, from the given input sentence, eg: "this is example" i take "this is" and search in %bigram_count in other program. if this two-word "this is" is found, then i want to access its count from %bigram_count. At this same process of loop, i also want to compare the single-word "this" and access its count from %word_count.
Sorry for repeated and long post. newbie to perl!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: iterate/traverse Two Hashes at once
by GrandFather (Saint) on Oct 17, 2009 at 21:28 UTC |