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

RE: [PATCH] core-only patch for clamp/readonly hashes

Thread Previous | Thread Next
Nick Ing-Simmons
October 31, 2001 01:06
RE: [PATCH] core-only patch for clamp/readonly hashes
Message ID:
Brent Dax <> writes:
>Jeffrey Friedl:
># One important concept is that if a key doesn't exist, exists() should
># return false. It may be allowed, but that doesn't mean it exists().
># Hopefully, everyone can agree with this.
>Yeah, but with one suggestion: C<exists> currently returns the empty
>string on false.  Maybe we can have it return something else that's
>false--0 or undef--if the key is allowed but doesn't currently exist.

I like that
   exists = 1 - yes its there
   exists = 0 - not there but could be
   exists = undef - not there and meaning not defined as not allowed.

Nick Ing-Simmons

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