>>>>> "DC" == Damian Conway <[EMAIL PROTECTED]> writes:
DC> A practical argument in its favour is that it makes DC> circular-lists-via-modulo: DC> @list[++nextidx%7] = $nextval; DC> $day_name = <<Sun Mon Tue Wed Thu Fri Sat>>[$day%7]; DC> both work correctly. not to defend 1 based arrays but all you have to do with the above is add the base offset to them: DC> @list[++nextidx%7 + 1] = $nextval; DC> $day_name = <<Sun Mon Tue Wed Thu Fri Sat>>[$day%7 + 1]; in any case i like 0 based. the best argument i have seen so far is that is makes -1 a meaningful index. that is something pl1 and fortran could never do without a range declaration. and larry's property and pragma ideas are fine solutions for those who want impaired indexing. :) uri -- Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.stemsystems.com ----- Stem and Perl Development, Systems Architecture, Design and Coding ---- Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org