On May 1, 2009, at 10:54 AM, David Fetter wrote:
> foreach my $element (@array) {
> # clear, short, idiomatic code here
> }
>
> instead of Rube Goldberg constructs like this:
>
> my $i;
> for ($i=0; $i <= $#array; ++$i)
> {
> # kludges up down and sideways here
> }
>
> is a good idea because it makes it easier for Perl programmers to
> maintain. It's also more efficient on the machine, for what that's
> worth.
We were only talking about indentation, David, not the use of idioms.
Best,
David