in reply to Re^4: Continuing While Loop One Iteration After EOF
in thread Continuing While Loop One Iteration After EOF

If avoiding code duplication is the goal, put the code that exists within the while loop into a subroutine, and call that sub one more time after the loop. If he wants to get tricky, he could generate a callback routine as a closeure within the loop that gets executed after the loop, though that seems like a lot of complexity that may lack justification.


Dave

  • Comment on Re^5: Continuing While Loop One Iteration After EOF