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

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

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
July 20, 2001 03:56
Subject:
Re: [PATCH for discussion] new feature: clamp %hash
Message ID:
B77DDAF9.2619%arthur@contiller.se
01-07-20 12.16, skrev Jeffrey Friedl på jfriedl@yahoo-inc.com 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.

-- 
Arthur


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