On Thu, Oct 02, 2003 at 07:41:41PM -0700, [EMAIL PROTECTED] wrote: > unless understood, how about this. > > if (defined $x and length $x) > > So, is this the opposite? > > if (! defined $x and ! length $x)
Nope; now you've got a boolean logic problem. Either of these would work, but unless() is nicer. if ( !(defined $x and length $x) ) { ... } if ( !(defined $x) or !(length $x) ) { ... } -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]