What osler is suggesting is using an array of arrays or a hash of arrays. Each element would actually be an arrayref that refers to an array with just the two values in it. So you would have both things in each element of the main array. This would be a good introduction to references which you need to know before creating objects.
In reply to Re^4: Creating a unique variable type (an object)
by Lotus1
in thread Creating a unique variable type
by tfredett
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |