But at run time after several successful cycles I get (when $index_cur==$index_prev): Can't "next" outside a loop block... So, it seems that next supposes it stands out of do-until. Why is so? How I can fix the issue?do{ $index_cur=int( rand( ( $last_abc_letter ) ) ); if( $index_cur==$index_prev ){ next; }else{ $index_prev=$index_cur; print "$letter[$index_cur]\n"; $key=&ReadKey( 0 ); } }until $key eq 'q';
In reply to do-until: Can't "next" outside a loop block. by humble
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |