Use a CPAN module! Preferably one that has a method that does what you want, and is called what you imagine it should be :-)
#!/usr/bin/env perl use strict; use warnings; use List::MoreUtils qw/ zip /; my @a1 = split('', 'ABCDEFGHIJ'); my @a2 = split('', 'abcde'); no warnings qw/ uninitialized /; print zip @a1, @a2; use warnings; __END__
In reply to Re: Merge 2 strings like a zip
by 1nickt
in thread Merge 2 strings like a zip
by tel2
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |