[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] That was productive...



> Hmm. I wonder how many ex-C now perl programmers have written...
>    for( $i = 0; $i < $#array; $i++)
> instead of...
>    for( $i = 0; $i <= $#array; $i++)

The Perl idiomatic syntax is:
    for( $i = 0; $i < @array; $i++)

So it doesn't really matter whether you are a Perl programmer with C or no
programming background at all.

_______________________________________________________________________
Stas Bekman    mailto:sbekman@iname.com      http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC     http://www.stason.org/stas/TULARC
perl.apache.org    modperl.sourcegarden.org   perlmonth.com    perl.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe