On Dec 19, 2003, at 7:59 AM, Rob Dixon wrote:

That's fair enough, as long as you have a consistent convention. I
use

for (EXPRESSION; EXPRESSION; EXPRESSION)

and

foreach (LIST)

unless the list has only one element, when I use

for (EXPRESSION)

to alias $_ with the expression for the extent of the block.

Just to throw another log on the fire: I do my foreach (LIST) as Rob does above, unless I'm using my own variable and then because I like the way it reads I change it to:


for my $var (LIST)

Ah, programmers and their little rules. :D

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to