in reply to Need help with complex tied data structure
BUGS 1. Adding or altering substructures to a hash value is not entirely transparent in current perl. If you want to store a reference or modify an existing reference value in the DBM, it must first be retrieved and stored in a temporary variable for further modifica tions. In particular, something like this will NOT work properly: $mldb{key}{subkey}[3] = 'stuff'; # won't wor +k Instead, that must be written as: $tmp = $mldb{key}; # retrieve +value $tmp->{subkey}[3] = 'stuff'; $mldb{key} = $tmp; # store val +ue This limitation exists because the perl TIEHASH inter face currently has no support for multidimensional ties.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Need help with complex tied data structure
by genecutl (Beadle) on Nov 20, 2003 at 23:28 UTC | |
by Abigail-II (Bishop) on Nov 20, 2003 at 23:34 UTC | |
by genecutl (Beadle) on Nov 21, 2003 at 00:31 UTC |