Lhamo_rin has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to increment the name of an array so that each time through my sub routine the data I'm saving we'll be saved to a different array. Unfortunately I have not had success. Can you please offer some advice to a novice?
Each time through I would like to save to a new array.sub separate_data { @a = split / /, $data[$a]; }
Llamo_rin
update (broquaint): added formatting + <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: incrementing array name
by Skeeve (Parson) on Jun 23, 2003 at 12:02 UTC | |
by gjb (Vicar) on Jun 23, 2003 at 12:23 UTC | |
by Lhamo_rin (Friar) on Jun 23, 2003 at 18:42 UTC | |
by Skeeve (Parson) on Jun 24, 2003 at 06:32 UTC | |
|
Re: incrementing array name
by particle (Vicar) on Jun 23, 2003 at 12:50 UTC | |
|
Re: incrementing array name
by Zaxo (Archbishop) on Jun 23, 2003 at 14:02 UTC | |
|
Re: incrementing array name
by hardburn (Abbot) on Jun 23, 2003 at 14:00 UTC |