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

Re: Stanford IDG internal Perl style



* 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 @#.

--
Jakub Wilk


Reply to: