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

Re: Stanford IDG internal Perl style



Jakub Wilk <jwilk@debian.org> writes:
> * Russ Allbery <rra@debian.org>, 2013-03-29, 10:24:

>> * Avoid C-style for statements when possible.  Unless you have a need
>> for a subscript when iterating with for, operate on the object directly
>> instead.  (ie: "for my $item (@array)" rather than "for my $i
>> (0..@#array)".

> The sigil should be $# rather than @#.

Indeed, thanks.  Will fix.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: