On Tue, Nov 29, 2011 at 2:30 AM, Abigail <abigail@abigail.be> wrote: > I use "for (my $i; $i < @array; $i ++)" and "foreach my $key (@array)", > because when *reading it out loud*, it sounds better than the other > way around, or when having a single name for it. > ...and what about counting loops? Why do people always leave out C<< for (EXPR..EXPR) >> when discussing preferences for "for" vs "foreach"?Thread Previous | Thread Next