in reply to if not defined

That doesn't appear to work:

if (!defined $pname && !defined $policy_ur && !defined $odate)


The values ARE defined.

Replies are listed 'Best First'.
Re^2: if not defined
by TGI (Parson) on Mar 23, 2007 at 18:24 UTC

    The above condition is not equivalent to what you posted earlier.

    NOT( DEFINED(A) AND DEFINED(B) AND DEFINED(C) ... )
    is equivalent to:
    ( NOT DEFINED(A) ) OR ( NOT DEFINED(B) ) OR ( NOT DEFINED(C) ) ...

    That's De Morgan's theorem.


    TGI says moo