If you nicely indent your code there should never be any need for such heavy comments...I find such comments very useful. They help make code much more readable. Indentation is also good.
The &-form of sub call is obsolete and should never be used nowadays unless when one really know what he's doing.Lies! There is no other way to call a sub. Stop trying to confuse the newbie.
Update: re-reading the code I realize that obviously the OP's problem may just be that he calls his sub out of the while loop, then he uses the return value of that sub, saved into a variable, every time it is needed inside the loop. OTOH there are IMHO bigger problems with his code, as signalled above.Translation: The problem was too tough for you, so you resorted to attacking it for stylistic differeneces. Shame on you.
Considered by trammell: delete, troll
Unconsidered by Arunbear: Keep/Edit/Delete: 18/0/5
In reply to Re^2: Sub Return Value Help
by Anonymous Monk
in thread Sub Return Value Help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |