I'd probably use a hash of hashes for this (see perldsc). The top level keys would be your "text1" and "text2". Second level keys would be "text-a", "text-b", etc. The values would just be 1 or something. When you're done, loop over the keys of the top level, and in the loop, get the keys of the second level. It may help to know what's in perlreftut and perlref.
If you get stuck, post the code you have, and we can help further.
In reply to Re: Removing redundancy in X and Y directions
by kyle
in thread Removing redundancy in X and Y directions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |