use Modern::Perl; use List::MoreUtils qw/each_array/; my @first = 1 .. 10; my @second = 'a' .. 'h'; my $ea = each_array(@first, @second); while ( my ($first, $second) = $ea->() ) { say "$first <-> $second"; }
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In reply to Re: printing unequal sized lists side by side
by CountZero
in thread printing unequal sized lists side by side
by nad04299
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |