Trihedralguy has asked for the wisdom of the Perl Monks concerning the following question:
while ($ucount <= $icount) { $radio_$ucount = param('radio_$ucount'); $textarea$ucount = param('textarea$ucount'); $ucount++; } $ucount = 1;
I'm sure I'm most likely missing something simple, but its those simple things that drive me crazy!$radio_1 = param('radio_1'); $textarea1 = param('textarea1'); $ucount++; (UCOUNT IS NOW 2) $radio_2 = param('radio_2'); $textarea2 = param('textarea2'); $ucount++; (UCOUNT IS NOW 3) etc etc...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Variables with Variables
by Joost (Canon) on Apr 02, 2007 at 14:18 UTC | |
| |
|
Re: Using Variables with Variables
by polettix (Vicar) on Apr 02, 2007 at 15:14 UTC | |
|
Re: Using Variables with Variables
by blue_cowdawg (Monsignor) on Apr 02, 2007 at 14:19 UTC | |
|
Re: Using Variables with Variables
by saintly (Scribe) on Apr 02, 2007 at 15:25 UTC | |
by Joost (Canon) on Apr 02, 2007 at 15:56 UTC | |
|
Re: Using Variables with Variables
by Ovid (Cardinal) on Apr 03, 2007 at 15:38 UTC | |
|
Re: Using Variables with Variables
by Trihedralguy (Pilgrim) on Apr 02, 2007 at 16:27 UTC |