This inserts 'undef's in the event one array is longer than the other.@combined = map { $list1[$_], $list2[$_] } 0 .. ($#list1 > $#list2 ? $#list1 : $#list2);
In reply to Re: interleaving lists
by Fastolfe
in thread interleaving lists
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |