in reply to interleaving lists
This inserts 'undef's in the event one array is longer than the other.@combined = map { $list1[$_], $list2[$_] } 0 .. ($#list1 > $#list2 ? $#list1 : $#list2);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
oooh
by Anonymous Monk on Jan 23, 2001 at 22:31 UTC | |
|
Re: Re: interleaving lists
by rmgiroux (Initiate) on Jan 23, 2001 at 18:32 UTC |