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
# Another Perl edition of a song:
# The End, by The Beatles
END {
$you->take($love) eq $you->made($love) ;
}
In reply to Re: making arrays that act like hashes at runtime
by bronto
in thread making arrays that act like hashes at runtime
by dinesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |