In other languages, such as C, there is little difference between a while()
loop and a do-while() loop.  The only difference of course being that that
do-while() loop will always execute at least once (test after), while the
while-loop does a test before.... 

Much to my amazement, do() in perl is a STATEMENT BLOCK and not a loop!  Yet
the while() construct is a loop.

________________________________________________

$ perldoc -f do
"do BLOCK" does not count as a loop, so the loop control
statements "next", "last", or "redo" cannot be used to leave
or restart the block.  See the perlsyn manpage for alternative
strategies.
________________________________________________

This seems odd to me.  Yes, I know perl is not C or java or ....

Thanks.........

-Jeff


__________________________________________________
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]

Reply via email to