for my $i (0 .. $MAX_ROWS - 1) { push @fee, ${"foo_$i"}; }