[Templates] trueness of arrrays/hashes
   
    Andy Wardley
     
    abw@kfs.org
       
    Tue, 12 Mar 2002 12:44:19 +0000
    
    
  
On Sat, Jan 26, 2002 at 01:51:34PM +0800, Stas Bekman wrote:
> IMHO, this is not right. .size for hash and array will show the number 
> of elements in the datastructure, a scalar always has exactly 1 element 
> (or we probably can say 0 elements if it's undef). So I'd say:
Damn, yes.  Sorry.  There was I not reading ahead in the thread.
Yes, I agree with Stas, .size should be 1 for scalars, not the same as 
length.
I'm going to go and change the source again... hmm... or maybe I should
check there isn't more to this thread... :-)
A