Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: A pair of "mathematical" attributes for arrays?

by moritz (Cardinal)
on Sep 10, 2007 at 17:56 UTC ( [id://638134]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://638134]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 01:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found