in reply to Using Map to Create AoA
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using Map to Create AoA
by pg (Canon) on Oct 16, 2005 at 16:09 UTC | |
by Dietz (Curate) on Oct 16, 2005 at 16:32 UTC |
In Section
Seekers of Perl Wisdom