On Sun, 16 Sep 2012 19:31:01 -0700 (PDT)
jmrhide-p...@yahoo.com wrote:

> for (my $i = 0; $i < @ary1; $i++) {Leaving aside other concerns, for
> the moment, is there a better way to write that first line?

You mean:

    for my $i ( 0 .. $#ary1 ){
        # ...
    }


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Why fit in when you can stand out?
        Dr. Seuss

Programming is as much about organization and communication
as it is about coding.

        _Perl links_
official site   : http://www.perl.org/
beginners' help : http://learn.perl.org/faq/beginners.html
advance help    : http://perlmonks.org/
documentation   : http://perldoc.perl.org/
news            : http://perlsphere.net/
repository      : http://www.cpan.org/
blog            : http://blogs.perl.org/
regional groups : http://www.pm.org/

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to