in reply to Dynamic Variable Names?
But symbolically referenced variables are generally a bad idea. A better option would be to use either a hash or an array (as would be fitting in your case) e.gmy $local_foo = ${"foo_$i"}
or better yetmy @fee; for (0 .. $MAX_ROWS){ push @fee, $foo[$_]; }
The last example is an array slice documented in the perldata manpage.my @fee = @foo[0 .. $MAX_ROWS];
_________
broquaint
|
|---|