- or download this
# since the order of the columns is significant, we
# use an array to hold information about each column.
...
width => 200,
align => 'right',
title => 'Barque' } );
- or download this
# now we can derive whichever other hashes or arrays
# we might want from the above data. having a list
...
# and to find the index of a column name:
my %COL_INDEX; @COL_INDEX{ @COL_NAMES } = 0 .. $#COL_INFO;
- or download this
# -------------------------------------------------------
# the information is centralized for other uses, such as
...
}
print "</tr>\n";
}