in reply to Re: Re: Loop Control : REDO
in thread Loop Control : REDO
since the $ works fine with \n thereprint "** Random 4 Lotto Numbers **\n"; print "** Type any four digits (0 to 9) **\n"; for ($i=1; $i <= 4; $i++) { print "Choice $i: "; redo if ($digit[$i] = <STDIN>) !~ /^\d$/; } print "Your choices :@digit \n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Loop Control : REDO
by iakobski (Pilgrim) on May 02, 2001 at 18:45 UTC | |
by suaveant (Parson) on May 02, 2001 at 18:52 UTC |