in reply to Re: Re: How keep the count...
in thread How keep the count...

No, you don't need a hash for that either. You can have another array, which will contain the number of the sentence in which the offset was found.

Or, if you absolutely insist on using hashes, you could, instead of two arrays, use an array of hashes, where each element of an array would be a hash, with two keys: offset and sentence_number.