in reply to While issues
On a side note, if $cnr is never used outside this context, I would use last (see Loop Control) to control flow:
while (1) { my $xda = int rand (0 .. $total); if ( $aob[$xda][ $y - 1 ] ne q{}) { $aob[$x][$y] = $z + $aob[$xda][ $y - 1 ]; last; } }
Update: I think windikegami has the answer abovebelow.
|
|---|