my @rray1 = qw/boy boymonkey boydog/; my @rray2 = qw/girl girlmonkey girldog/; while( my ( $i, $v ) = each @rray1 ){ print " $v => $rray2[$i]\n"; } __END__ boy => girl boymonkey => girlmonkey boydog => girldog
In reply to Re^2: how to avoid using index of array
by Anonymous Monk
in thread how to avoid using index of array
by Achilles_Sea
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |