in reply to Dynamic Variable Names?

To do exactly what you're trying to do, do something like:
for my $i (0 .. $MAX_ROWS - 1) { push @fee, ${"foo_$i"}; }

That said, DON'T DO IT THAT WAY.

That is what's called a "soft reference". Since you're coming from the web, you should know it's a security leak. Taint-checking fails that. strict fails that. (You are using string and -T, right?)

As for a better solution, you need to change your form. CGI should be able to handle arrays. (You are using CGI, right?)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.