|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Using Map to Create AoAby Dietz (Curate) |
| on Oct 16, 2005 at 15:58 UTC ( #500578=note: print w/ replies, xml ) | Need Help?? |
|
Update: Rereading your question this is not what you're seeking for. Following will save also the index. map { [ split(" ", $arr->[$_]." $_") ] } 0..$#{$arr}; But as pg already said, there is no obvious advantage in storing the index.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||