in reply to
Flatten sparse AoA
You (hopefully) meant
@flat = map { @$_ } grep { defined } @{$aoa};
[download]
and the answer is "no." If your array is truly sparse, you should implement it with a hash.
Comment on
Re: Flatten sparse AoA
Download
Code
In Section
Seekers of Perl Wisdom