Re: proposed addition to perlvar
[email protected] (Matt Sergeant)
| Newsgroups | perl.perl5.porters |
|---|---|
| Message-ID | <alpine.DEB.2.01.1006092137140.25687@bodger> |
On Wed, 9 Jun 2010, Abigail wrote: > Just because a construct is documented does not imply it's encouraged. > It's important for documentation to be complete. In a section showing > an example of '$#', the example should preferable have as few other > things as possible - I would prefer the above over any foreach construct. > These lines are about $#. Not foreach. Not ranges. And it is code that > people will encounter - and consult the documentation for. > > Let's stay clear of a -1 vs. $#a preference debate. This part of the > documentation is not the place. True, but this part of the documentation isn't even ABOUT $#array, it's about $#. So it should certainly minimise what it discusses about $#array. Anyhow, I think this was fixed and cleared up with the last patch. Matt.