--- "R. Joseph Newton" <[EMAIL PROTECTED]> wrote:
> 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*.
>
> 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.
Cool. Glad I could help. :)
I'm not subscribed to the list anymore, but please feel free to email
me personally if I can help.
Paul
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]