for ( 1 .. 5 ) { my @five = $iterator->(); say join " ", @five; }