davidraske has asked for the wisdom of the Perl Monks concerning the following question:
I thought this was possible, but for some reason its not working...
But my syntax is off I guess...any ideas?I have a large form with many similarly names vars...all appended with + a trailing increasing int. $foo_2, $foo_3, $foo_4,... $foo_100 I'm trying to do something like this: my @fee; for (my $i=0; $i < $MAX_ROWS; $i++){ my $local_foo = $foo_$i; push @fee, $local_foo; }#end loop
s/pre/code/ - dvergin 2002-07-23
Back to
Seekers of Perl Wisdom