Hi Mika
To address your code directly:
I suspect this line is the problem:
$OBU_objects[$OBU_idx] = \%OBU_hash;
Each time this line executes it stores a reference to the
same hash at a different position in @OBU_objects. To create
a new hash each time, you could to this:
$OBU
I'm not sure what you are saying your problem is,
and I may have this wrong, but since no one else
has answered, I'll have a go.
To generate a new, anonymous hash that is a
copy of an existing named hash, use {}.
Put the {} brackets around some expression that
can be seen by perl as a hash, eg: