Juerd wrote:
Rob Kinyon skribis 2005-11-23 11:58 (-0500):

I don't use 0..$n-1 very often. I use 0..$#arr most often.


Good point. Doesn't ^5 encourage [EMAIL PROTECTED] too much? After all, we 
should
write what we mean, instead of something that happens to evaluate to the
same list. We mean to use indexes, but [EMAIL PROTECTED] doesn't return an index.

Actually I like that and think that ^$x should be 0..($x-1) and that [EMAIL PROTECTED] should be define to return the array's index set (usually 0..$#foo) but maybe something else for a non-zero based array.


--
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Reply via email to