On Tue, 29 Nov 2011 09:47:55 +0100, Eric Brine <ikegami@adaelis.com> wrote: > 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"? Because .. does result into an array? -- With regards, Christian WaldeThread Previous | Thread Next