in reply to Re: 'and next' question
in thread 'and next' question
"You are post-incrementing your variable. It isn't 'true' until after the and is evaluated."
I am a little bit concerned that this statement could be easily misunderstood (I strongly believe that you mean the right thing, and I don't intend to second guess, but I want make this a little bit more clear and precise. I know that I am a little bit picky here ;-).
If you try this code:
my $a = 1; $a++ and print $a;
You will get 2, which shows that right after "$a++" is evaluated, and before the entire second line finished, ++ already happened.
From a pure language view, that "It" in your sentence could stand for the phrase "your variable", which appeared earlier. In the case of the original post, that variable is already true before that "and" is evaluated, but it is false before the "++" happened. However "++" happens before "and".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: 'and next' question
by sauoq (Abbot) on Oct 27, 2003 at 17:03 UTC |