Re: proposed addition to perlvar
[email protected] (David Golden)
| Newsgroups | perl.perl5.porters |
|---|---|
| Message-ID | <[email protected]> |
I'll tweak it and apply it. I'm also going to change the section to "Legacy names" or some equivalent and add some intro text. (Deprecated means "still working but going away" so I don't want to confuse things.) You don't need to send another patch. I'll work with what I've got. David On Wed, Jun 9, 2010 at 11:30 AM, Chas. Owens <[email protected]> wrote: > On Wed, Jun 9, 2010 at 11:23, Chas. Owens <[email protected]> wrote: >> On Wed, Jun 9, 2010 at 07:14, David Golden <[email protected]> wrote: >>> I like what you have below for both, particularly the bit about the >>> warnings. Could you please re-submit them in patch format? >> snip >> >> I moved both variables into a new section named "Deprecated Names" >> between "Predefined Names" and "Error Indicators". I also change one >> of the examples in $# based on concern raised by some of the other >> emails. > snip > > Ignore the last patch, the example was overcomplicated. I have changed it to > > my @array = ("a", "b", "c"); > my $last_index = $#a; # $last_index is 2 > > for my $i (0 .. $#array) { > print "the value at index $i is '$array[$i]'\n"; > } > > I am not using say because it is not available unless you add one of > "use feature qw/say/;", "use v5.10;", etc. > > -- > Chas. Owens > wonkden.net > The most important skill a programmer can have is the ability to read. >