RE: What Type Of Data Structure Is This?

2002-09-30 Thread nkuipers
$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

Re: What Type Of Data Structure Is This?

2002-09-30 Thread Robin Cragg
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:

RE: What Type Of Data Structure Is This?

2002-09-30 Thread Timothy Johnson
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

RE: What Type Of Data Structure Is This (Summary)

2002-09-30 Thread Ken Hammer
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

Re: What Type Of Data Structure Is This?

2002-09-30 Thread John W. Krahn
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],