in reply to hashes of array references
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 |