in reply to Re: •Re: subroutine()[$x];
in thread subroutine()[$x];

You should read Re: Surpised by foreach iterator limitation and it's replies.