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.
In reply to Re: While issues
by kennethk
in thread While issues
by Dandello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |