Mistake in FOR LOOP testing section

14 views
Skip to first unread message

Shayne Caraway

unread,
Sep 27, 2012, 5:35:12 PM9/27/12
to perl...@googlegroups.com
Hi,

You have an important mistake on your site regarding FOR loop TESTING.
It has led to some people being confused about the words "until" and
"while" and their English and Computer Science meanings.

On page:
http://www.perlhome.com/perlloops/

Under the FOR loop, under testing, you have:

"The loop executes until the result of testing is true."

The word "until" in that sentence should be "while" (or "so long as"
or "as long as", etc.).

So it fixed would be:
"The loop executes WHILE the result of testing is true."


And for further clarity:
"The loop executes UNTIL the result of the testing is FALSE."

Could you please correct this soon?

Thank you,
Shayne Caraway

p.s. Your email address on the site "edi...@perlhome.com" is NOT working.

Reply all
Reply to author
Forward
0 new messages