in reply to Make array from field of another array
Then you go on to say iterate which makes me think you want the new array to be the result of all the elements of the old array:my @new_array = split /:/, $old_array[0];
You might also mean something completely different so I would recommend you provide an example of how you are doing it now that you don't care for and see if we can improve upon that.my @new_array = map {split /:/, $_} @old_array;
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Make array from field of another array
by Saved (Beadle) on Apr 07, 2011 at 16:25 UTC | |
by kennethk (Abbot) on Apr 07, 2011 at 16:47 UTC | |
by Saved (Beadle) on Apr 07, 2011 at 17:14 UTC | |
by Saved (Beadle) on Apr 07, 2011 at 17:17 UTC | |
by Saved (Beadle) on Apr 07, 2011 at 18:35 UTC | |
|
Re^2: Make array from field of another array
by Saved (Beadle) on Apr 07, 2011 at 15:52 UTC |