Gotcha. You meant to ask if $x==0 would be false... (I'm guessing).-----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
No, he meant that:
if ($x) { } # would be false and not execute, if he set $x first with
$x = 0;
0 is false in Perl, just as it is in C.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]