in reply to Re: Re: •Re: "for" surprise
in thread "for" surprise
I agree that makes sense and I do it myself all the time, but sometimes it might not be what you want to do and it might not be good thing in which case even if you think you are changing the behavior, you are not.That way, $i can't be used outside the loop, and I consider that a goo +d thing.
It was a small example not real code. Where it says "# do some useful stuff" there would be ... some useful stuff :-)But why are you using a loop over a fixed range instead of a loop from + 1 to $end anyway?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: •Re: "for" surprise
by etcshadow (Priest) on Nov 22, 2003 at 03:42 UTC | |
|
Re: "for" surprise
by Abigail-II (Bishop) on Nov 21, 2003 at 21:24 UTC |