use List::MoreUtils qw( each_array );
my @first = qw( foo bar buzz );
my @second = (1, 2, 3);
my $it = each_array( @first, @second );
while ( my ($f, $s) = $it->() ) {
print "$f = $sn";
}
# Output
# foo = 1
# bar = 2
# buzz = 3
Conteúdo para você se capacitar em programação
use List::MoreUtils qw( each_array );
my @first = qw( foo bar buzz );
my @second = (1, 2, 3);
my $it = each_array( @first, @second );
while ( my ($f, $s) = $it->() ) {
print "$f = $sn";
}
# Output
# foo = 1
# bar = 2
# buzz = 3