Keep It Simple, Stupid | |
PerlMonks |
Re: making arrays that act like hashes at runtimeby bronto (Priest) |
on Jul 01, 2002 at 13:51 UTC ( [id://178552]=note: print w/replies, xml ) | Need Help?? |
You could use fields and fields::phash in particular. Documentation reads: fields::phash() can be used to create and initialize a plain (unblessed) pseudo-hash. This function should always be used instead of creating pseudo-hashes directly. Nevertheless, I subscribe other's advice about not using pseudohashes at all. I don't know if even the fields implementation of pseudohashes will disappear or will be the "official way" of using pseudohash-like structures. Is there any monk that could give us an advice on this? Thanks --bronto
In Section
Seekers of Perl Wisdom
|
|