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

RE: [FWP] That was productive...



Stas Bekman wrote:

> > 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++)

for( $i = $[; $i <= $#array; $i++ )

All Hail Deprecated Perl!

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