Re: perldata
[email protected] (_brian_d_foy) Wed, 22 Jun 2005 09:44:57 -0500
| Newsgroups | perl.perlfaq.workers |
|---|---|
| Message-ID | <220620050944570471%[email protected]> |
In article <[email protected]>, Nosov Artem <[email protected]> wrote: > Please anybody correct the following line in perldata: > @days # ($days[0], $days[1],... $days[n]) > > it must be > @days # ($days[0], $days[1],... $days[n-1]) > > 1 .. n, but > 0 .. n-1 In perldata there is no discussion on the value of n, so it doesn't matter. It can already represent that last index. Your suggested fix is more confusing since it comes without context and makes it look as if there is an operation in the array index. I don't see any reason to change it, unless we change it to: @days # ($days[0], $days[1],... $days[$#days]) -- brian d foy, [email protected]