You should probably avoid destroying @foo during the merge: my @foobar= map { ($bar[$_],$foo[$_]) } 0..$#bar; or
See mapcar. - tye (but my friends call me "Tye")use mapcar; my @foobar= mapcar { @_ } \@bar, \@foo;
In reply to (tye)Re: Uninitialized Value Error When Interleaving
by tye
in thread Uninitialized Value Error When Interleaving
by La12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |