Re: proposed addition to perlvar

[email protected] ("Chas. Owens")
Newsgroups perl.perl5.porters
Message-ID <[email protected]>
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.
perlvar.pod (application/octet-stream, 59.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.