Hello..
I have a bit of an odd problem (I think its odd. It might not be). I've written a module that exports a single function. This function opens a file, reads in each line, and builds an assocative array based on whats coming in setup by doing my %data = { };. A simple unpack into an array and then $data{@field[0]}{@array[0]} = @array
1; $data{@field
1}{@array[0]} = @array
2; and so on. Thus array[0] is like a primary key etc. The module returns this as a reference using return \%data;
I then do, for example, $records = newfile("text.txt"); to set up the associative array reference, $records is a reference to %data. Then I did @primary = keys(%{$records});. I didn't get quite what I expected.
I was hoping for an array holding all the values that had come from @array[0]. I got them. However, I also got something that looked like 0hashX0f, a hash reference I think, in the first element of the @primary array. Other attempts at fixing it moved the hash reference (?) to other places in the array, seemingly randomly.
Unfortunately the code is at home. Else I'd post it.
Help? Chris
$live{$free}||die