Paul wrote:
> > my $i = 1;
> > do {print "$i\n"; $i++;} while $i < 1;
> > print $i . "\n";
>
> Be aware that the above is different from
>
> my $i = 1;
> print $i++."\n" while $i < 1;
> print $i . "\n";
>
> because a do{}while() always goes through the do{} *at least once*.
>
> If that was overstating the otherwise horrifically obvious, I
> apologize. :)
Bingo! Thanks. No, I was still not getting it. I used the do because I was having
trouble getting the $i++ to interpolate without. I see now that the position does not
make a difference with the single-statement conditional. Until I saw your post I was
unaware that it was the do command that was forcing the first loop.
That helps clear it up.
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]