in reply to Help with sorting/randomizing?
Use a nested hash with the top level key the class A addresses, class B as the second tier, class C as the third tier and an array of class D addresses as the ultimate value.
If that doesn't make sense write a little code, show us where you are having trouble, and we'll help further. PerlMonks is not a code writing service, but we will write almost any amount of code if we think you are making an effort and learning from it.
You may find perllol helpful if you haven't used nested data structures in Perl before. To a reasonable extent you can replace [...] with {...} when using nested hashes instead of nested arrays. Note too the "See Also" section at the end.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with sorting/randomizing?
by countingcrows (Initiate) on Mar 25, 2012 at 19:58 UTC | |
by GrandFather (Saint) on Mar 25, 2012 at 20:19 UTC | |
by countingcrows (Initiate) on Mar 25, 2012 at 20:29 UTC | |
by tobyink (Canon) on Mar 26, 2012 at 16:15 UTC | |
by countingcrows (Initiate) on Mar 25, 2012 at 22:26 UTC |