Thanks for your input,
Xyus, but I'm still confused with
NeuroFuzzy's last statement:
What exactly is "a.b.c" referencing? I see that he defined the types (abcd, efgh, ijkl), but I don't see where he made an instance of the types to assign any values to them. And "a.b.c" seems ambiguous because all 3 types have an "a" attribute, and all 3 types have a "b" attribute. I just wanted to clarify if
NeuroFuzzy's example was supposed to just be an illustration of how things would work, or if it was supposed to be a working example, because I can't get the example to compile.
A hash in Perl is just an associative array. Instead of a stack of values indexed by numbers, think of a stack of values indexed by names.
# Perl Array
@ary = (1,1,2,3,5,13);
# The above definition would mean that the value at index 5 of
# the array named @ary would be 13 (index starts at 0), referenced
# like this: $ary[5]
# Perl Hash
%hsh = ('barney' => 'rubble',
'fred' => 'flintstone',
'wilma' => 'flintstone');
# The above definition would mean that the value at the index
# named 'fred' would be 'flintstone', referenced like this:
# $hsh{'barney'}
Any clarification would be
greatly appreciated!