perhaps the answer to your homework looks like:
I'm not too sure what your first paragraph is about, it confuses me.| | handwaving here... starting with @ry1 and @ry2 being fully populated +. for($i=0;$i<=($#ry1 < $#ry2? $#ry1 : $#ry2){ if ($ry1[$i] != 0 ) { $ry[$i] = <do something> # edit accordingly } }
In reply to Re: Get same position value in 2nd array
by blue_cowdawg
in thread Get same position value in 2nd array
by Phinix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |