in reply to Re: hash, a troublemaker?
in thread hash, a troublemaker?
i.e. $records{$person}{$K_AGE}
That way you keep records grouped. Since Perl doesn't have real structures of any merit, the next logical step is to go to an OO representation and use functions/etc (maybe one of those MethodMaker deals) to prevent accidental typos.
At minimum, the Hash::Util method provides locking while preserving the logical representation of the data (edit: and clean Data::Dumper dumpability!).
Keeping fields seperated without context, IMHO, is the worst thing you can do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash, a troublemaker?
by Abigail-II (Bishop) on May 12, 2004 at 14:17 UTC | |
by flyingmoose (Priest) on May 12, 2004 at 14:26 UTC | |
|
Re: Re: Re: hash, a troublemaker?
by Doraemon (Beadle) on May 12, 2004 at 14:35 UTC |