develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH for discussion] new feature: clamp %hash

Thread Previous | Thread Next
Simon Cozens
July 19, 2001 14:55
Re: [PATCH for discussion] new feature: clamp %hash
Message ID:
On Thu, Jul 19, 2001 at 11:15:12AM -0700, Jeffrey Friedl wrote:
> I have long wished that I could mark a hash such that no new keys could
> be added to it -- sort of like a "use strict" for hashes in that if you
> intended
> 	$foo->{Quiet} = 1;
> and by accident typed
> 	$foo->{Quite} = 1;
> you'd get an error.

Have you played with Tie::SecureHash?

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About