in reply to Uninitialized Value Error When Interleaving

You should probably avoid destroying @foo during the merge: my @foobar= map { ($bar[$_],$foo[$_]) } 0..$#bar; or

use mapcar; my @foobar= mapcar { @_ } \@bar, \@foo;
See mapcar.

        - tye (but my friends call me "Tye")