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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Dynamic Variable Names?
by dragonchild (Archbishop) on Jul 23, 2002 at 15:32 UTC | |
Re: Dynamic Variable Names?
by broquaint (Abbot) on Jul 23, 2002 at 15:37 UTC | |
Re: Dynamic Variable Names?
by erikharrison (Deacon) on Jul 23, 2002 at 15:35 UTC | |
Re: Dynamic Variable Names?
by ignatz (Vicar) on Jul 23, 2002 at 17:14 UTC | |
Re: Dynamic Variable Names?
by RollyGuy (Chaplain) on Jul 23, 2002 at 15:34 UTC | |
by Abigail-II (Bishop) on Jul 23, 2002 at 15:58 UTC | |
by Anonymous Monk on Jul 23, 2002 at 23:41 UTC | |
by Abigail-II (Bishop) on Jul 24, 2002 at 08:37 UTC | |
by Anonymous Monk on Jul 25, 2002 at 00:36 UTC | |
Re: Dynamic Variable Names?
by bronto (Priest) on Jul 24, 2002 at 12:11 UTC |
Back to
Seekers of Perl Wisdom