develooper Front page | perl.fwp | Postings from December 2001

Re: tri-state flags

Thread Previous | Thread Next
Uri Guttman
December 6, 2001 21:32
Re: tri-state flags
Message ID:
>>>>> "BL" == Bart Lateur <> writes:

  BL> On Thu, 6 Dec 2001 02:56:58 -0500, Uri Guttman wrote:
  >> so the main boolean test is ref!

  BL> Thank goodness that ref() doesn't generate a warning when used with
  BL> undef as a parameter.

hmm, i never looked into that. when i have my tristate values, i usually
test for undef first, then ref. i will look into seeing if it is neater
using the ref test first, then a plain boolean test for the error string
and then the last line assuming undef was returned. 


Uri Guttman  ------  --------
-- Stem is an Open Source Network Development Toolkit and Application Suite -
----- Stem and Perl Development, Systems Architecture, Design and Coding ----
Search or Offer Perl Jobs  ----------------------------

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