in reply to Re: A pair of "mathematical" attributes for arrays?
in thread A pair of "mathematical" attributes for arrays?

Obviously a while (@bar) would run until all memory was exhausted

Why should it? An empty array with non-zero default values would still be false, right?

Replies are listed 'Best First'.
Re^3: A pair of "mathematical" attributes for arrays?
by TGI (Parson) on Sep 10, 2007 at 23:52 UTC

    Oops. I somehow convinced myself that while works for array iteration something like it does with a filehandle.

    Array iterators (each, foreach, etc) should only deal with existing indexes. An empty array should be false.


    TGI says moo