Hi, Just try this easy
my $x=1; my $y=2; my @a=qw(1 2 3); my @b=qw(7 8 9); for my $y(0..$#a) { print "$x:$a[$y] $y:$b[$y]\n"; }
The output is
1:1 2:7
1:2 2:8
1:3 2:9
Regards,
Gubendran.L
In reply to Re: read 2 array simultaneously
by gube
in thread read 2 array simultaneously
by dee00zee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |