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

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

Thread Previous | Thread Next
Arthur Bergman
July 20, 2001 03:56
Re: [PATCH for discussion] new feature: clamp %hash
Message ID:
01-07-20 12.16, skrev Jeffrey Friedl på följande:

> So, with just this added functionality, it's ugly, but you could:
> 1) create your hash with all approved keys.
> 2) clamp it
> 3) delete keys you didn't want at the moment. This leaves them
> pre-populated in memory, but !defined() and !exists() and
> not showing up with keys() or values() or each().

Ugly or not, you can have a module automaticly do this for you.


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