in reply to Re: Access a global variable from a subroutine when used as "for" iteratorin thread Access a global variable from a subroutine when used as "for" iterator