$tablename{$table} = {
table_name= [$table],
index_name= [$index_name],
columns = [@column_name],
type = [$index_type],
tablespace= [$tablespace_name]
This works great and I can later
Hi Ken,
the reason you lose your data is simple. You have something of the form:
$myscalar = A weird hested hash;
you then try to add an entry by doing:
$myscalar = Some other data;
What you look at it like that, it's clear what is going wrong. What you
want is:
What you have is a hash of hashes, the values of which is a reference to a
hash of arrays. The original scalar is a reference to an anonymous hash.
The value of each hash key is a reference to an anonymous array. The reason
why what you tried doesn't work is that you are assigning a reference
The structure is a hash of hashes. Thanks
to:
nkuipers [EMAIL PROTECTED]
Robin Cragg [EMAIL PROTECTED]
Timothy Johnson [EMAIL PROTECTED]
who correctly pointed this also to me. They
also provided some information on how to add
items to the array, and an easier way to
populate the
Ken Hammer wrote:
A strange question.
I'm using the following data structure to
store information from a data base query:
$tablename{$table} = {
table_name= [$table],
index_name= [$index_name],
columns = [@column_name],