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

Re: tri-state flags

Thread Previous | Thread Next
From:
Uri Guttman
Date:
December 6, 2001 21:32
Subject:
Re: tri-state flags
Message ID:
200112070531.AAA29554@home.sysarch.com.
>>>>> "BL" == Bart Lateur <bart.lateur@pandora.be> 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

-- 
Uri Guttman  ------  uri@stemsystems.com  -------- http://www.stemsystems.com
-- 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  ----------------------------  http://jobs.perl.org

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