in reply to For loop problem
You're looking at execution order for the '..' operator:
There's no guarantee as to which operand of the operator gets evaluated first. In this case, it appears to be the RHS ($.++ . $.). So you get '12', but you leave $. at 2. Then the loop happens.++$. .. $.++ . $.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: For loop problem
by srawls (Friar) on Jun 03, 2001 at 22:56 UTC | |
by japhy (Canon) on Jun 03, 2001 at 23:19 UTC | |
by Arguile (Hermit) on Jun 04, 2001 at 00:26 UTC | |
by chipmunk (Parson) on Jun 04, 2001 at 06:05 UTC | |
by Arguile (Hermit) on Jun 04, 2001 at 06:41 UTC |
In Section
Seekers of Perl Wisdom