The syntax for calling the ref should be &$iter($index)
Well, also $iter->($index).
In reply to Re^4: using reference to subroutine by blazar in thread using reference to subroutine by kotoko