in reply to Re^2: Loop that creates multidimensional array?
in thread Loop that creates multidimensional array?

No need to copy the 2 items to a new array.

while (my $row = $sth->fetchrow_arrayref) { push @{ $players[$count] }, $row->[0], $row->[4]; }