James has my intention correctly: my $x=0; if($x) #this would return false which is NOT I was looking for.
To recap, I want to test if a var is undefined or ''. Thus, this would be equivalent to my isNULL() approach? if(undefined $x && length($x)==0) thanks, -rkl >> -----Original Message----- >> From: James Edward Gray II [mailto:[EMAIL PROTECTED] >> Sent: Thursday, October 02, 2003 5:20 PM >> To: [EMAIL PROTECTED] >> Cc: [EMAIL PROTECTED] >> Subject: Re: Testing Uninitialized Vars >> >> >> On Thursday, October 2, 2003, at 07:08 PM, [EMAIL PROTECTED] wrote: >> >> > you mean $x=0; would be false? >> >> Yep. >> >> James >> > Gotcha. You meant to ask if $x==0 would be false... (I'm guessing). > > -Mark > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]