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

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

Thread Previous | Thread Next
From:
Simon Cozens
Date:
July 19, 2001 14:55
Subject:
Re: [PATCH for discussion] new feature: clamp %hash
Message ID:
20010719175322.B32453@netthink.co.uk
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About