membership test problem
Frank Ch. Eigler
fche@redhat.com
Thu Oct 26 23:00:00 GMT 2006
Mike Mason <mmlnx@us.ibm.com> writes:
> What should the following code print? I expected TRUE, but got
> FALSE. Looks like if the array element value is 0, the membership
> test fails. Is this correct? [...]
Yes, Josh's explanation is correct, zero and "" are deemed to be
null/absent values for purposes of array elements. (This could change
though.)
(I could have sworn that I documented this behavior in the man page,
but now I can't find it. It is in the tutorial.)
- FChE
More information about the Systemtap
mailing list