Angharad has asked for the wisdom of the Perl Monks concerning the following question:
I would like to be able to create a hash that, for when, for example, code90 is first hit, its 'counted' (i.e. a variable is increased by one) and goes into the hash and is stored. As I am only interested in whether code90 exists, rather then how many times it exists, if I then encounter it again, I need to check the hash to see whether I have already counted it. If I have, I want to ignore that entry and move onto the next in the text file.HIT: code2 HIT: code3 HIT: code1 HIT: code90 HIT: code2 HIT: code34 HIT: code90
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help on how to create a hash look up table requested.
by Fletch (Bishop) on Aug 10, 2006 at 14:10 UTC | |
|
Re: help on how to create a hash look up table requested.
by McDarren (Abbot) on Aug 10, 2006 at 14:15 UTC | |
by johngg (Canon) on Aug 10, 2006 at 20:57 UTC | |
by sh1tn (Priest) on Aug 10, 2006 at 21:33 UTC | |
|
Re: help on how to create a hash look up table requested.
by GrandFather (Saint) on Aug 10, 2006 at 22:28 UTC | |
|
Re: help on how to create a hash look up table requested.
by Angharad (Pilgrim) on Aug 10, 2006 at 15:19 UTC |