willick has asked for the wisdom of the Perl Monks concerning the following question:
Share your wisdom oh wise ones!!!!!for ($d = 0; $d <= $#arr_name; $d++) { #need to create new array with the loop count appended to the name @arr_new_$d; #need to push items into new array push (@arr_new_$d, $something2add); }
Edit: chipmunk 2001-10-15
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Varying Variable Names
by blakem (Monsignor) on Oct 15, 2001 at 23:36 UTC | |
| |
|
Re: Varying Variable Names
by wog (Curate) on Oct 15, 2001 at 23:34 UTC | |
by willick (Novice) on Oct 16, 2001 at 00:56 UTC | |
by merlyn (Sage) on Oct 16, 2001 at 02:09 UTC | |
by blakem (Monsignor) on Oct 16, 2001 at 01:02 UTC | |
|
Re: Varying Variable Names
by arturo (Vicar) on Oct 15, 2001 at 23:44 UTC | |
|
Re: Varying Variable Names
by Zaxo (Archbishop) on Oct 16, 2001 at 04:10 UTC | |
|
Re: Varying Variable Names
by alien_life_form (Pilgrim) on Oct 16, 2001 at 14:30 UTC | |
|