On Tue, May 14, 2002 at 12:02:54PM -0700, Myk Melez wrote:
> Calling the "size" virtual function on an empty array returns the 
> undefined value.  This is consistent with Perl behavior 
> (scalar(@empty_array) returns undefined) but inconsistent with what I 
> would expect when calling the "size" virtual function in TT.  Shouldn't 
> the function return numeric zero in this situation?

Are you sure you've got an empty array and not an undef array?

I just tried this:

   [% empty = [ ]; empty.size %]

and it correctly printed:

   0

A



Reply via email to