It's the same sort of process that's used in building "Trie" trees over a list of words (to analyze "prefix patterns" by building this sort of hash from the letters that spell the words), and there are a few different CPAN solutions for that.
In reply to Re: transform array into a data structure
by graff
in thread transform array into a data structure
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |