Syntactic Confectionery Delight | |
PerlMonks |
Re^4: Creating a unique variable type (an object)by Lotus1 (Vicar) |
on Mar 26, 2013 at 13:21 UTC ( [id://1025518]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|