Anonymous Monk,
I think this is just your misunderstanding.
- An array in scalar context will return the number of elements : 1 = true
- An array element in scalar context will be the value of that element : 0 = false
If this still didn't make sense you should check out
What is Truth in the
tutorials section.
Cheers - L~R