SPUG: Hashes with Private/Hidden Values

Joshua ben Jore twists at gmail.com
Mon May 7 15:42:28 PDT 2007

On 5/7/07, Ingmar Ellenberger <ingmar at site42.com> wrote:
> Hi all,
> A couple of months ago I had a need for a hash where I could 'hide' keys
> from the foreach loop, but to my surprise, there seemed to be nothing of the
> sort on CPAN.  In my usual re-invent-the-wheel style I wrote a class and
> named it 'Hash::Private' and am considering submitting it to CPAN.  My
> questions are ...
> 1. Is there already something like this and I just didn't find it?
> 2. Is 'Hash::Private' an appropriate name, considering it's a hashref and
> the term 'private' is way too overloaded?

Does Tie::Hash::HiddenKeys make more sense to you? I don't immediately
associate "undetectable" with your word "private."


More information about the spug-list mailing list