in reply to Re^4: Loop through array or filehandlein thread Loop through array or filehandle
What should go into the while condition is the call to the iterator returned by create_iter (i.e. $iter->() in my sample code).