Hello 1nickt,
As a cleaner alternative to:
no warnings qw/ uninitialized /; print zip @a1, @a2; use warnings;
you can just filter the list returned by zip:
print grep { defined } zip @a1, @a2;
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re^2: Merge 2 strings like a zip
by Athanasius
in thread Merge 2 strings like a zip
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |