in reply to hashes of array references

It would help if you gave us a small, working example that we can actually run and debug.

But it might be easier if the functions wouldn't assign stuff to a hash ref, but return a value, which the caller can then assign, ie you write something along these lines:

$EDHRef->{$key} = extractDataFunctionHash{$key}->($key, $DNRef);

That way it's much simpler to debug.

One (possibly unrelated) thing to be aware of is this: $EDHRef->{$key} = \@extractedLinesArray; If @extractedLinesArray is not locally scoped to the current sub, it will always assign a reference to the same array, so all the values in %$EDHRef will end up being the same array.

Replies are listed 'Best First'.
Re^2: hashes of array references
by tobyperl (Initiate) on Jul 22, 2009 at 20:18 UTC
    Thanks for the reply....Good idea...actually I'm passing the hashes around from a main driver via a reference. I declare them locally and pass the reference through the different menu selections. All this does is crunch data files and is written very specific to the task in mind. I'm going to try the comment from the first reply and see if that makes a diference. If that fails I'll post the code and a set of data files.